12:42:08 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/123808 12:42:08 Running as SYSTEM 12:42:08 [EnvInject] - Loading node environment variables. 12:42:08 Building remotely on prd-ubuntu2204-docker-4c-16g-32649 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 12:42:08 [ssh-agent] Looking for ssh-agent implementation... 12:42:08 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:42:08 $ ssh-agent 12:42:08 SSH_AUTH_SOCK=/tmp/ssh-XXXXXX8jLLIy/agent.1550 12:42:08 SSH_AGENT_PID=1552 12:42:08 [ssh-agent] Started. 12:42:08 Running ssh-add (command line suppressed) 12:42:08 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_16362901687036859061.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_16362901687036859061.key) 12:42:09 [ssh-agent] Using credentials jenkins (jenkins-ssh) 12:42:09 The recommended git tool is: NONE 12:42:11 using credential jenkins-ssh 12:42:11 Wiping out workspace first. 12:42:11 Cloning the remote Git repository 12:42:11 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 12:42:11 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 12:42:11 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 12:42:11 > git --version # timeout=10 12:42:11 > git --version # 'git version 2.34.1' 12:42:11 using GIT_SSH to set credentials jenkins-ssh 12:42:11 Verifying host key using known hosts file, will automatically accept unseen keys 12:42:11 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 12:42:22 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 12:42:22 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:42:23 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 12:42:23 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 12:42:23 using GIT_SSH to set credentials jenkins-ssh 12:42:23 Verifying host key using known hosts file, will automatically accept unseen keys 12:42:23 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/08/123808/5 # timeout=10 12:42:24 > git rev-parse 168281cf721ab2834de38033e0ecca48b4941ac7^{commit} # timeout=10 12:42:24 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 12:42:24 Checking out Revision 168281cf721ab2834de38033e0ecca48b4941ac7 (refs/changes/08/123808/5) 12:42:24 > git config core.sparsecheckout # timeout=10 12:42:24 > git checkout -f 168281cf721ab2834de38033e0ecca48b4941ac7 # timeout=10 12:42:24 Commit message: "tapi: clear connectionFullMap per service creation" 12:42:24 > git rev-parse FETCH_HEAD^{commit} # timeout=10 12:42:24 > git rev-list --no-walk 2acf6eb3631af2363facc3cb99c4d9561c4198ba # timeout=10 12:42:24 > git remote # timeout=10 12:42:24 > git submodule init # timeout=10 12:42:24 > git submodule sync # timeout=10 12:42:24 > git config --get remote.origin.url # timeout=10 12:42:24 > git submodule init # timeout=10 12:42:24 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 12:42:24 ERROR: No submodules found. 12:42:28 provisioning config files... 12:42:28 copy managed file [npmrc] to file:/home/jenkins/.npmrc 12:42:28 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 12:42:28 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2695320968143397042.sh 12:42:28 ---> python-tools-install.sh 12:42:28 Setup pyenv: 12:42:28 * system (set by /opt/pyenv/version) 12:42:28 * 3.8.20 (set by /opt/pyenv/version) 12:42:28 * 3.9.20 (set by /opt/pyenv/version) 12:42:28 3.10.15 12:42:28 3.11.10 12:42:33 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-owWC 12:42:33 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 12:42:33 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:42:33 lf-activate-venv(): INFO: Attempting to install with network-safe options... 12:42:37 lf-activate-venv(): INFO: Base packages installed successfully 12:42:37 lf-activate-venv(): INFO: Installing additional packages: lftools 12:43:02 lf-activate-venv(): INFO: Adding /tmp/venv-owWC/bin to PATH 12:43:02 Generating Requirements File 12:43:27 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 12:43:27 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 12:43:27 Python 3.11.10 12:43:27 pip 26.1.2 from /tmp/venv-owWC/lib/python3.11/site-packages/pip (python 3.11) 12:43:28 aiohappyeyeballs==2.7.1 12:43:28 aiohttp==3.14.1 12:43:28 aiosignal==1.4.0 12:43:28 appdirs==1.4.4 12:43:28 argcomplete==3.7.0 12:43:28 aspy.yaml==1.3.0 12:43:28 attrs==26.1.0 12:43:28 autopage==0.6.0 12:43:28 beautifulsoup4==4.15.0 12:43:28 boto3==1.43.40 12:43:28 botocore==1.43.40 12:43:28 bs4==0.0.2 12:43:28 certifi==2026.6.17 12:43:28 cffi==2.0.0 12:43:28 cfgv==3.5.0 12:43:28 chardet==7.4.3 12:43:28 charset-normalizer==3.4.7 12:43:28 click==8.4.2 12:43:28 cliff==4.14.0 12:43:28 cmd2==4.0.0 12:43:28 cryptography==3.3.2 12:43:28 debtcollector==3.1.0 12:43:28 decorator==5.3.1 12:43:28 defusedxml==0.7.1 12:43:28 Deprecated==1.3.1 12:43:28 distlib==0.4.3 12:43:28 dnspython==2.8.0 12:43:28 docker==7.1.0 12:43:28 dogpile.cache==1.5.0 12:43:28 durationpy==0.10 12:43:28 email-validator==2.3.0 12:43:28 filelock==3.29.5 12:43:28 frozenlist==1.8.0 12:43:28 future==1.0.0 12:43:28 gitdb==4.0.12 12:43:28 GitPython==3.1.50 12:43:28 httplib2==0.30.2 12:43:28 identify==2.6.19 12:43:28 idna==3.18 12:43:28 importlib-resources==1.5.0 12:43:28 iso8601==2.1.0 12:43:28 Jinja2==3.1.6 12:43:28 jmespath==1.1.0 12:43:28 jsonpatch==1.33 12:43:28 jsonpointer==3.1.1 12:43:28 jsonschema==4.26.0 12:43:28 jsonschema-specifications==2025.9.1 12:43:28 keystoneauth1==5.14.0 12:43:28 kubernetes==36.0.2 12:43:28 lftools==0.37.22 12:43:28 lxml==6.1.1 12:43:28 markdown-it-py==4.2.0 12:43:28 MarkupSafe==3.0.3 12:43:28 mdurl==0.1.2 12:43:28 msgpack==1.2.1 12:43:28 multi_key_dict==2.0.3 12:43:28 multidict==6.7.1 12:43:28 munch==4.0.0 12:43:28 netaddr==1.3.0 12:43:28 niet==1.4.2 12:43:28 nodeenv==1.10.0 12:43:28 oauth2client==4.1.3 12:43:28 oauthlib==3.3.1 12:43:28 openstacksdk==4.17.0 12:43:28 os-service-types==1.8.2 12:43:28 osc-lib==4.6.0 12:43:28 oslo.config==10.5.0 12:43:28 oslo.context==6.4.0 12:43:28 oslo.i18n==6.8.0 12:43:28 oslo.log==8.2.0 12:43:28 oslo.serialization==5.10.0 12:43:28 oslo.utils==10.1.1 12:43:28 packaging==26.2 12:43:28 pbr==7.0.3 12:43:28 platformdirs==4.10.0 12:43:28 prettytable==3.18.0 12:43:28 prompt_toolkit==3.0.52 12:43:28 propcache==0.5.2 12:43:28 psutil==7.2.2 12:43:28 pyasn1==0.6.3 12:43:28 pyasn1_modules==0.4.2 12:43:28 pycparser==3.0 12:43:28 pygerrit2==2.0.15 12:43:28 PyGithub==2.9.1 12:43:28 Pygments==2.20.0 12:43:28 PyJWT==2.13.0 12:43:28 PyNaCl==1.6.2 12:43:28 pyparsing==2.4.7 12:43:28 pyperclip==1.11.0 12:43:28 pyrsistent==0.20.0 12:43:28 python-cinderclient==9.9.0 12:43:28 python-dateutil==2.9.0.post0 12:43:28 python-discovery==1.4.2 12:43:28 python-heatclient==5.2.0 12:43:28 python-jenkins==1.8.3 12:43:28 python-keystoneclient==5.8.0 12:43:28 python-magnumclient==4.11.0 12:43:28 python-openstackclient==10.1.0 12:43:28 python-swiftclient==4.10.0 12:43:28 PyYAML==6.0.3 12:43:28 referencing==0.37.0 12:43:28 requests==2.34.2 12:43:28 requests-oauthlib==2.0.0 12:43:28 rfc3986==2.0.0 12:43:28 rich==15.0.0 12:43:28 rich-argparse==1.8.0 12:43:28 rpds-py==2026.6.3 12:43:28 rsa==4.9.1 12:43:28 ruamel.yaml==0.19.1 12:43:28 ruamel.yaml.clib==0.2.15 12:43:28 s3transfer==0.19.0 12:43:28 simplejson==4.1.1 12:43:28 six==1.17.0 12:43:28 smmap==5.0.3 12:43:28 soupsieve==2.8.4 12:43:28 stevedore==5.9.0 12:43:28 tabulate==0.10.0 12:43:28 toml==0.10.2 12:43:28 tomlkit==0.15.0 12:43:28 tqdm==4.68.3 12:43:28 typing_extensions==4.16.0 12:43:28 urllib3==1.26.20 12:43:28 virtualenv==21.5.1 12:43:28 wcwidth==0.8.2 12:43:28 websocket-client==1.9.0 12:43:28 wrapt==2.2.2 12:43:28 xdg==6.0.0 12:43:28 xmltodict==1.0.4 12:43:28 yarl==1.24.2 12:43:28 yq==4.0.0 12:43:28 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins12968417582139657831.sh 12:43:28 ---> uv-install.sh 12:43:28 Installing uv/uvx (latest) using shell installer 12:43:28 2026-07-03 12:43:28 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71233/71233] -> "/tmp/uv-install-5WeSbp.sh" [1] 12:43:28 downloading uv 0.11.26 x86_64-unknown-linux-gnu 12:43:29 installing to /home/jenkins/.local/bin 12:43:29 uv 12:43:29 uvx 12:43:29 everything's installed! 12:43:29 12:43:29 To add $HOME/.local/bin to your PATH, either restart your shell or run: 12:43:29 12:43:29 source $HOME/.local/bin/env (sh, bash, zsh) 12:43:29 source $HOME/.local/bin/env.fish (fish) 12:43:29 Adding install location to PATH 12:43:29 ---> Validating uv/uvx install 12:43:29 uvx 0.11.26 (x86_64-unknown-linux-gnu) 12:43:29 [EnvInject] - Injecting environment variables from a build step. 12:43:29 [EnvInject] - Injecting as environment variables the properties content 12:43:29 PYTHON=python3 12:43:29 12:43:29 [EnvInject] - Variables injected successfully. 12:43:29 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13554895491557453083.sh 12:43:29 ---> tox-install.sh 12:43:29 + source /home/jenkins/lf-env.sh 12:43:29 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:43:29 ++ mktemp -d /tmp/venv-XXXX 12:43:29 + lf_venv=/tmp/venv-4Mon 12:43:29 + local venv_file=/tmp/.os_lf_venv 12:43:29 + local python=python3 12:43:29 + local options 12:43:29 + local set_path=true 12:43:29 + local install_args= 12:43:29 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:43:29 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:43:29 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:43:29 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 12:43:29 + true 12:43:29 + case $1 in 12:43:29 + venv_file=/tmp/.toxenv 12:43:29 + shift 2 12:43:29 + true 12:43:29 + case $1 in 12:43:29 + shift 12:43:29 + break 12:43:29 + case $python in 12:43:29 + local pkg_list= 12:43:29 + [[ -d /opt/pyenv ]] 12:43:29 + echo 'Setup pyenv:' 12:43:29 Setup pyenv: 12:43:29 + export PYENV_ROOT=/opt/pyenv 12:43:29 + PYENV_ROOT=/opt/pyenv 12:43:29 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:29 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:29 + pyenv versions 12:43:29 system 12:43:29 3.8.20 12:43:29 3.9.20 12:43:29 3.10.15 12:43:29 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:43:29 + command -v pyenv 12:43:29 ++ pyenv init - --no-rehash 12:43:29 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 12:43:29 for i in ${!paths[@]}; do 12:43:29 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 12:43:29 fi; done; 12:43:29 echo "${paths[*]}"'\'')" 12:43:29 export PATH="/opt/pyenv/shims:${PATH}" 12:43:29 export PYENV_SHELL=bash 12:43:29 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 12:43:29 pyenv() { 12:43:29 local command 12:43:29 command="${1:-}" 12:43:29 if [ "$#" -gt 0 ]; then 12:43:29 shift 12:43:29 fi 12:43:29 12:43:29 case "$command" in 12:43:29 rehash|shell) 12:43:29 eval "$(pyenv "sh-$command" "$@")" 12:43:29 ;; 12:43:29 *) 12:43:29 command pyenv "$command" "$@" 12:43:29 ;; 12:43:29 esac 12:43:29 }' 12:43:29 +++ bash --norc -ec 'IFS=:; paths=($PATH); 12:43:29 for i in ${!paths[@]}; do 12:43:29 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 12:43:29 fi; done; 12:43:29 echo "${paths[*]}"' 12:43:29 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:29 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:29 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:29 ++ export PYENV_SHELL=bash 12:43:29 ++ PYENV_SHELL=bash 12:43:29 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 12:43:29 +++ complete -F _pyenv pyenv 12:43:29 ++ lf-pyver python3 12:43:29 ++ local py_version_xy=python3 12:43:29 ++ local py_version_xyz= 12:43:29 ++ pyenv versions 12:43:29 ++ local command 12:43:29 ++ command=versions 12:43:29 ++ '[' 1 -gt 0 ']' 12:43:29 ++ shift 12:43:29 ++ case "$command" in 12:43:29 ++ command pyenv versions 12:43:29 ++ sed 's/^[ *]* //' 12:43:29 ++ awk '{ print $1 }' 12:43:29 ++ grep -E '^[0-9.]*[0-9]$' 12:43:29 ++ [[ ! -s /tmp/.pyenv_versions ]] 12:43:29 +++ grep '^3' /tmp/.pyenv_versions 12:43:29 +++ sort -V 12:43:29 +++ tail -n 1 12:43:29 ++ py_version_xyz=3.11.10 12:43:29 ++ [[ -z 3.11.10 ]] 12:43:29 ++ echo 3.11.10 12:43:29 ++ return 0 12:43:29 + pyenv local 3.11.10 12:43:29 + local command 12:43:29 + command=local 12:43:29 + '[' 2 -gt 0 ']' 12:43:29 + shift 12:43:29 + case "$command" in 12:43:29 + command pyenv local 3.11.10 12:43:29 + for arg in "$@" 12:43:29 + case $arg in 12:43:29 + pkg_list+='tox ' 12:43:29 + for arg in "$@" 12:43:29 + case $arg in 12:43:29 + pkg_list+='virtualenv ' 12:43:29 + for arg in "$@" 12:43:29 + case $arg in 12:43:29 + pkg_list+='urllib3~=1.26.15 ' 12:43:29 + [[ -f /tmp/.toxenv ]] 12:43:29 + [[ ! -f /tmp/.toxenv ]] 12:43:29 + [[ -n '' ]] 12:43:29 + python3 -m venv /tmp/venv-4Mon 12:43:34 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-4Mon' 12:43:34 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-4Mon 12:43:34 + echo /tmp/venv-4Mon 12:43:34 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 12:43:34 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 12:43:34 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 12:43:34 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:43:34 + local 'pip_opts=--upgrade --quiet' 12:43:34 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 12:43:34 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 12:43:34 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 12:43:34 + [[ -n '' ]] 12:43:34 + [[ -n '' ]] 12:43:34 + echo 'lf-activate-venv(): INFO: Attempting to install with network-safe options...' 12:43:34 lf-activate-venv(): INFO: Attempting to install with network-safe options... 12:43:34 + /tmp/venv-4Mon/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 12:43:37 + echo 'lf-activate-venv(): INFO: Base packages installed successfully' 12:43:37 lf-activate-venv(): INFO: Base packages installed successfully 12:43:37 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 12:43:37 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 12:43:37 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 12:43:37 + /tmp/venv-4Mon/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 12:43:39 + type python3 12:43:39 + true 12:43:39 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-4Mon/bin to PATH' 12:43:39 lf-activate-venv(): INFO: Adding /tmp/venv-4Mon/bin to PATH 12:43:39 + PATH=/tmp/venv-4Mon/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:39 + return 0 12:43:39 + python3 --version 12:43:39 Python 3.11.10 12:43:39 + python3 -m pip --version 12:43:39 pip 26.1.2 from /tmp/venv-4Mon/lib/python3.11/site-packages/pip (python 3.11) 12:43:39 + python3 -m pip freeze 12:43:40 cachetools==7.1.4 12:43:40 colorama==0.4.6 12:43:40 distlib==0.4.3 12:43:40 filelock==3.29.5 12:43:40 packaging==26.2 12:43:40 platformdirs==4.10.0 12:43:40 pluggy==1.6.0 12:43:40 pyproject-api==1.10.1 12:43:40 python-discovery==1.4.2 12:43:40 tomli_w==1.2.0 12:43:40 tox==4.56.1 12:43:40 urllib3==1.26.20 12:43:40 virtualenv==21.5.1 12:43:40 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins10403307907644375815.sh 12:43:40 [EnvInject] - Injecting environment variables from a build step. 12:43:40 [EnvInject] - Injecting as environment variables the properties content 12:43:40 PARALLEL=True 12:43:40 12:43:40 [EnvInject] - Variables injected successfully. 12:43:40 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins12000024458723776881.sh 12:43:40 ---> tox-run.sh 12:43:40 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:40 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 12:43:40 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 12:43:40 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 12:43:40 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 12:43:40 + source /home/jenkins/lf-env.sh 12:43:40 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:43:40 ++ mktemp -d /tmp/venv-XXXX 12:43:40 + lf_venv=/tmp/venv-cCIH 12:43:40 + local venv_file=/tmp/.os_lf_venv 12:43:40 + local python=python3 12:43:40 + local options 12:43:40 + local set_path=true 12:43:40 + local install_args= 12:43:40 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:43:40 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:43:40 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:43:40 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 12:43:40 + true 12:43:40 + case $1 in 12:43:40 + venv_file=/tmp/.toxenv 12:43:40 + shift 2 12:43:40 + true 12:43:40 + case $1 in 12:43:40 + shift 12:43:40 + break 12:43:40 + case $python in 12:43:40 + local pkg_list= 12:43:40 + [[ -d /opt/pyenv ]] 12:43:40 + echo 'Setup pyenv:' 12:43:40 Setup pyenv: 12:43:40 + export PYENV_ROOT=/opt/pyenv 12:43:40 + PYENV_ROOT=/opt/pyenv 12:43:40 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:40 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:40 + pyenv versions 12:43:40 system 12:43:40 3.8.20 12:43:40 3.9.20 12:43:40 3.10.15 12:43:40 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:43:40 + command -v pyenv 12:43:40 ++ pyenv init - --no-rehash 12:43:40 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 12:43:40 for i in ${!paths[@]}; do 12:43:40 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 12:43:40 fi; done; 12:43:40 echo "${paths[*]}"'\'')" 12:43:40 export PATH="/opt/pyenv/shims:${PATH}" 12:43:40 export PYENV_SHELL=bash 12:43:40 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 12:43:40 pyenv() { 12:43:40 local command 12:43:40 command="${1:-}" 12:43:40 if [ "$#" -gt 0 ]; then 12:43:40 shift 12:43:40 fi 12:43:40 12:43:40 case "$command" in 12:43:40 rehash|shell) 12:43:40 eval "$(pyenv "sh-$command" "$@")" 12:43:40 ;; 12:43:40 *) 12:43:40 command pyenv "$command" "$@" 12:43:40 ;; 12:43:40 esac 12:43:40 }' 12:43:40 +++ bash --norc -ec 'IFS=:; paths=($PATH); 12:43:40 for i in ${!paths[@]}; do 12:43:40 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 12:43:40 fi; done; 12:43:40 echo "${paths[*]}"' 12:43:40 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:40 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:40 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:40 ++ export PYENV_SHELL=bash 12:43:40 ++ PYENV_SHELL=bash 12:43:40 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 12:43:40 +++ complete -F _pyenv pyenv 12:43:40 ++ lf-pyver python3 12:43:40 ++ local py_version_xy=python3 12:43:40 ++ local py_version_xyz= 12:43:40 ++ pyenv versions 12:43:40 ++ sed 's/^[ *]* //' 12:43:40 ++ awk '{ print $1 }' 12:43:40 ++ grep -E '^[0-9.]*[0-9]$' 12:43:40 ++ local command 12:43:40 ++ command=versions 12:43:40 ++ '[' 1 -gt 0 ']' 12:43:40 ++ shift 12:43:40 ++ case "$command" in 12:43:40 ++ command pyenv versions 12:43:40 ++ [[ ! -s /tmp/.pyenv_versions ]] 12:43:40 +++ grep '^3' /tmp/.pyenv_versions 12:43:40 +++ sort -V 12:43:40 +++ tail -n 1 12:43:40 ++ py_version_xyz=3.11.10 12:43:40 ++ [[ -z 3.11.10 ]] 12:43:40 ++ echo 3.11.10 12:43:40 ++ return 0 12:43:40 + pyenv local 3.11.10 12:43:40 + local command 12:43:40 + command=local 12:43:40 + '[' 2 -gt 0 ']' 12:43:40 + shift 12:43:40 + case "$command" in 12:43:40 + command pyenv local 3.11.10 12:43:40 + for arg in "$@" 12:43:40 + case $arg in 12:43:40 + pkg_list+='tox ' 12:43:40 + for arg in "$@" 12:43:40 + case $arg in 12:43:40 + pkg_list+='virtualenv ' 12:43:40 + for arg in "$@" 12:43:40 + case $arg in 12:43:40 + pkg_list+='urllib3~=1.26.15 ' 12:43:40 + [[ -f /tmp/.toxenv ]] 12:43:40 ++ cat /tmp/.toxenv 12:43:40 + lf_venv=/tmp/venv-4Mon 12:43:40 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-4Mon from' file:/tmp/.toxenv 12:43:40 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-4Mon from file:/tmp/.toxenv 12:43:40 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 12:43:40 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:43:40 + local 'pip_opts=--upgrade --quiet' 12:43:40 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 12:43:40 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 12:43:40 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 12:43:40 + [[ -n '' ]] 12:43:40 + [[ -n '' ]] 12:43:40 + echo 'lf-activate-venv(): INFO: Attempting to install with network-safe options...' 12:43:40 lf-activate-venv(): INFO: Attempting to install with network-safe options... 12:43:40 + /tmp/venv-4Mon/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 12:43:41 + echo 'lf-activate-venv(): INFO: Base packages installed successfully' 12:43:41 lf-activate-venv(): INFO: Base packages installed successfully 12:43:41 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 12:43:41 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 12:43:41 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 12:43:41 + /tmp/venv-4Mon/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 12:43:42 + type python3 12:43:42 + true 12:43:42 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-4Mon/bin to PATH' 12:43:42 lf-activate-venv(): INFO: Adding /tmp/venv-4Mon/bin to PATH 12:43:42 + PATH=/tmp/venv-4Mon/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:42 + return 0 12:43:42 + [[ -d /opt/pyenv ]] 12:43:42 + echo '---> Setting up pyenv' 12:43:42 ---> Setting up pyenv 12:43:42 + export PYENV_ROOT=/opt/pyenv 12:43:42 + PYENV_ROOT=/opt/pyenv 12:43:42 + export PATH=/opt/pyenv/bin:/tmp/venv-4Mon/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:42 + PATH=/opt/pyenv/bin:/tmp/venv-4Mon/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 12:43:42 ++ pwd 12:43:42 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 12:43:42 + export PYTHONPATH 12:43:42 + export TOX_TESTENV_PASSENV=PYTHONPATH 12:43:42 + TOX_TESTENV_PASSENV=PYTHONPATH 12:43:42 + tox --version 12:43:42 4.56.1 from /tmp/venv-4Mon/lib/python3.11/site-packages/tox/__init__.py 12:43:42 + PARALLEL=True 12:43:42 + TOX_OPTIONS_LIST= 12:43:42 + [[ -n '' ]] 12:43:42 + case ${PARALLEL,,} in 12:43:42 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 12:43:42 + tox --parallel auto --parallel-live 12:43:42 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 12:43:44 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:43:44 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 12:43:44 checkbashisms: freeze> python -m pip freeze --all 12:43:44 docs: install_deps> python -I -m pip install -r docs/requirements.txt 12:43:45 checkbashisms: pip==26.1.2,setuptools==82.0.1 12:43:45 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 12:43:45 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 12:43:45 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 12:43:46 checkbashisms: OK ✔ in 3.4 seconds 12:43:46 pre-commit: install_deps> python -I -m pip install pre-commit 12:43:48 pre-commit: freeze> python -m pip freeze --all 12:43:49 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.29.5,identify==2.6.19,nodeenv==1.10.0,pip==26.1.2,platformdirs==4.10.0,pre_commit==4.6.0,python-discovery==1.4.2,PyYAML==6.0.3,setuptools==82.0.1,virtualenv==21.5.1 12:43:49 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 12:43:49 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 12:43:49 /usr/bin/cpan 12:43:49 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 12:43:49 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 12:43:49 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 12:43:50 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 12:43:50 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 12:43:50 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 12:43:50 buildcontroller: freeze> python -m pip freeze --all 12:43:51 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 12:43:51 buildcontroller: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:43:51 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 12:43:51 + update-java-alternatives -l 12:43:51 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 12:43:51 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 12:43:51 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 12:43:51 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 12:43:51 update-alternatives: error: no alternatives for jaotc 12:43:51 update-alternatives: error: no alternatives for rmic 12:43:51 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 12:43:51 + java -version 12:43:51 21 12:43:51 + JAVA_VER=21 12:43:51 + echo 21 12:43:51 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 12:43:51 + javac -version 12:43:51 + JAVAC_VER=21 12:43:51 + echo 21 12:43:51 21 12:43:51 ok, java is 21 or newer 12:43:51 + [ 21 -ge 21 ] 12:43:51 + [ 21 -ge 21 ] 12:43:51 + echo ok, java is 21 or newer 12:43:51 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 12:43:51 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 12:43:51 2026-07-03 12:43:51 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 12:43:51 + sudo mkdir -p /opt 12:43:51 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 12:43:52 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 12:43:52 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 12:43:52 + mvn --version 12:43:52 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 12:43:52 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 12:43:52 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 12:43:52 Maven home: /opt/maven 12:43:52 Java version: 21.0.10, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 12:43:52 Default locale: en, platform encoding: UTF-8 12:43:52 OS name: "linux", version: "5.15.0-174-generic", arch: "amd64", family: "unix" 12:43:52 NOTE: Picked up JDK_JAVA_OPTIONS: 12:43:52 --add-opens=java.base/java.io=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.lang=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.net=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.nio=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.util=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:43:52 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:43:52 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:43:52 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:43:52 -Xlog:disable 12:43:52 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 12:43:53 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 12:43:53 [INFO] Once installed this environment will be reused. 12:43:53 [INFO] This may take a few minutes... 12:43:58 docs: freeze> python -m pip freeze --all 12:43:58 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.6.17,charset-normalizer==3.4.7,deepmerge==2.1.0,docutils==0.22.4,idna==3.18,imagesize==2.0.0,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.37.4,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.21.0,mistune==3.3.2,packaging==26.2,picobox==4.0.0,pip==26.1.2,Pygments==2.20.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==2.1.0,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==82.0.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.2.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.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.0.2,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.7.0 12:43:58 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 12:43:58 docs-linkcheck: freeze> python -m pip freeze --all 12:43:59 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 12:43:59 [INFO] Once installed this environment will be reused. 12:43:59 [INFO] This may take a few minutes... 12:43:59 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.6.17,charset-normalizer==3.4.7,deepmerge==2.1.0,docutils==0.22.4,idna==3.18,imagesize==2.0.0,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.37.4,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.21.0,mistune==3.3.2,packaging==26.2,picobox==4.0.0,pip==26.1.2,Pygments==2.20.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==2.1.0,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==82.0.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.2.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.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.0.2,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.7.0 12:43:59 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 12:44:02 docs: OK ✔ in 19.38 seconds 12:44:02 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 12:44:05 docs-linkcheck: OK ✔ in 20.95 seconds 12:44:05 pylint: freeze> python -m pip freeze --all 12:44:05 [INFO] Installing environment for https://github.com/hhatto/autopep8. 12:44:05 [INFO] Once installed this environment will be reused. 12:44:05 [INFO] This may take a few minutes... 12:44:05 pylint: astroid==4.0.4,dill==0.4.1,isort==8.0.1,mccabe==0.7.0,pip==26.1.2,platformdirs==4.10.0,pylint==4.0.6,setuptools==82.0.1,tomlkit==0.15.0 12:44:05 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 12:44:09 [INFO] Installing environment for https://github.com/perltidy/perltidy. 12:44:09 [INFO] Once installed this environment will be reused. 12:44:09 [INFO] This may take a few minutes... 12:44:20 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 12:44:20 [INFO] Once installed this environment will be reused. 12:44:20 [INFO] This may take a few minutes... 12:44:24 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 12:44:24 [INFO] Once installed this environment will be reused. 12:44:24 [INFO] This may take a few minutes... 12:44:30 trim trailing whitespace.................................................Passed 12:44:30 fix end of files.........................................................Passed 12:44:30 check for added large files..............................................Passed 12:44:30 check for merge conflicts................................................Passed 12:44:31 check for case conflicts................................................. 12:44:31 ------------------------------------ 12:44:31 Your code has been rated at 10.00/10 12:44:31 12:44:31 Passed 12:44:31 check json...............................................................Passed 12:44:31 mixed line ending........................................................Passed 12:44:32 Tabs remover.............................................................Passed 12:44:32 autopep8.................................................................Passed 12:44:36 perltidy.................................................................Passed 12:44:36 ShellCheck v0.11.0.......................................................Passed 12:44:40 prettier.................................................................Passed 12:44:42 yamllint.................................................................Passed 12:44:42 pylint: OK ✔ in 32.14 seconds 12:44:42 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 12:44:42 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 12:44:42 [INFO] Once installed this environment will be reused. 12:44:42 [INFO] This may take a few minutes... 12:44:48 [ERROR] COMPILATION ERROR : 12:44:48 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[39,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 12:44:48 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[40,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 12:44:48 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[72,20] cannot find symbol 12:44:48 symbol: class McCapability 12:44:48 location: class org.opendaylight.transportpce.pce.networkanalyzer.PceTapiLinkUnidirTest 12:44:48 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:testCompile (default-testCompile) on project transportpce-pce: Compilation failure: Compilation failure: 12:44:48 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[39,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 12:44:48 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[40,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 12:44:48 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[72,20] cannot find symbol 12:44:48 [ERROR] symbol: class McCapability 12:44:48 [ERROR] location: class org.opendaylight.transportpce.pce.networkanalyzer.PceTapiLinkUnidirTest 12:44:48 [ERROR] -> [Help 1] 12:44:48 [ERROR] 12:44:48 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 12:44:48 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 12:44:48 [ERROR] 12:44:48 [ERROR] For more information about the errors and possible solutions, please read the following articles: 12:44:48 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 12:44:48 [ERROR] 12:44:48 [ERROR] After correcting the problems, you can resume the build with the command 12:44:48 [ERROR] mvn -rf :transportpce-pce 12:44:48 buildcontroller: exit 1 (57.66 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2804 12:44:49 buildcontroller: FAIL ✖ in 1 minute 5.91 seconds 12:44:49 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:44:49 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:44:49 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:44:50 gitlint..................................................................Passed 12:44:50 pre-commit: OK ✔ in 1 minute 3.98 seconds 12:44:50 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:44:55 build_karaf_tests71: freeze> python -m pip freeze --all 12:44:55 build_karaf_tests121: freeze> python -m pip freeze --all 12:44:55 build_karaf_tests221: freeze> python -m pip freeze --all 12:44:55 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:44:55 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:44:55 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:44:55 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:44:55 build karaf in karaf71 with ./karaf71.env 12:44:55 build karaf in karaf121 with ./karaf121.env 12:44:56 NOTE: Picked up JDK_JAVA_OPTIONS: 12:44:56 --add-opens=java.base/java.io=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.net=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:44:56 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:44:56 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:44:56 -Xlog:disable 12:44:56 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:44:56 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:44:56 build karaf in karaf221 with ./karaf221.env 12:44:56 NOTE: Picked up JDK_JAVA_OPTIONS: 12:44:56 --add-opens=java.base/java.io=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.net=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:44:56 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:44:56 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:44:56 -Xlog:disable 12:44:56 NOTE: Picked up JDK_JAVA_OPTIONS: 12:44:56 --add-opens=java.base/java.io=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.net=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:44:56 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:44:56 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:44:56 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:44:56 -Xlog:disable 12:44:57 build_karaf_tests190: freeze> python -m pip freeze --all 12:44:57 build_karaf_tests190: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:44:57 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:44:57 build karaf in karafoc with ./karafoc.env 12:44:58 NOTE: Picked up JDK_JAVA_OPTIONS: 12:44:58 --add-opens=java.base/java.io=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.lang=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.net=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.nio=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.util=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:44:58 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:44:58 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:44:58 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:44:58 -Xlog:disable 12:45:17 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.0.0-SNAPSHOT 12:45:17 [ERROR] dependency: org.opendaylight.transportpce:transportpce-dmaap-client:jar:13.0.0-SNAPSHOT (runtime) 12:45:17 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-dmaap-client:jar:13.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 12:45:17 [ERROR] -> [Help 1] 12:45:17 [ERROR] 12:45:17 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 12:45:17 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 12:45:17 [ERROR] 12:45:17 [ERROR] For more information about the errors and possible solutions, please read the following articles: 12:45:17 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 12:45:17 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 12:45:17 build_karaf_tests221: exit 127 (21.23 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4306 12:45:17 build_karaf_tests221: FAIL ✖ in 28.31 seconds 12:45:17 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:45:33 buildlighty: freeze> python -m pip freeze --all 12:45:33 buildlighty: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:45:33 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 12:45:33 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 12:46:00 buildlighty: OK ✔ in 42.89 seconds 12:46:00 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:46:03 build_karaf_tests190: OK ✔ in 1 minute 11.05 seconds 12:46:03 build_karaf_tests71: OK ✔ in 1 minute 14.08 seconds 12:46:03 build_karaf_tests121: OK ✔ in 1 minute 14.53 seconds 12:46:03 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:46:09 sims: freeze> python -m pip freeze --all 12:46:09 sims: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:46:09 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 12:46:09 Using lighynode version 22.1.0.6 12:46:09 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 12:46:46 sims: OK ✔ in 12.79 seconds 12:46:46 testsPCE: freeze> python -m pip freeze --all 12:46:46 testsPCE: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,click==8.4.2,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.63.0,gnpy4tpce==2.4.7,idna==3.18,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.0,lxml==6.1.1,MarkupSafe==3.0.3,matplotlib==3.11.0,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.2,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.2,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 12:46:46 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 12:46:46 pytest -q transportpce_tests/pce/test01_pce.py 12:48:47 EEEEEEEEEEEEEEEEEEEE [100%] 12:48:50 ==================================== ERRORS ==================================== 12:48:50 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 12:48:50 12:48:50 cls = 12:48:50 12:48:50 @classmethod 12:48:50 def setUpClass(cls): 12:48:50 # pylint: disable=bare-except 12:48:50 sample_files_parsed = False 12:48:50 time.sleep(20) 12:48:50 try: 12:48:50 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:48:50 "..", "..", "sample_configs", "honeynode-topo.json") 12:48:50 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 12:48:50 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 12:48:50 12:48:50 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:48:50 "..", "..", "sample_configs", "NW-simple-topology.json") 12:48:50 12:48:50 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 12:48:50 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 12:48:50 12:48:50 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:48:50 "..", "..", "sample_configs", "NW-for-test-5-4.json") 12:48:50 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 12:48:50 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 12:48:50 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:48:50 "..", "..", "sample_configs", "pce_portmapping_121.json") 12:48:50 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 12:48:50 cls.port_mapping_data = port_mapping.read() 12:48:50 sample_files_parsed = True 12:48:50 except PermissionError as err: 12:48:50 print("Permission Error when trying to read sample files\n", err) 12:48:50 sys.exit(2) 12:48:50 except FileNotFoundError as err: 12:48:50 print("File Not found Error when trying to read sample files\n", err) 12:48:50 sys.exit(2) 12:48:50 except: 12:48:50 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 12:48:50 sys.exit(2) 12:48:50 finally: 12:48:50 if sample_files_parsed: 12:48:50 print("sample files content loaded") 12:48:50 12:48:50 > cls.processes = test_utils.start_tpce() 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 12:48:50 transportpce_tests/pce/test01_pce.py:93: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 def start_tpce(): 12:48:50 if 'NO_ODL_STARTUP' in os.environ: 12:48:50 print('No OpenDaylight instance to start!') 12:48:50 return [] 12:48:50 print('starting OpenDaylight...') 12:48:50 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:48:50 process = start_lighty() 12:48:50 else: 12:48:50 process = start_karaf() 12:48:50 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:48:50 print('OpenDaylight started !') 12:48:50 else: 12:48:50 print('OpenDaylight failed to start !') 12:48:50 shutdown_process(process) 12:48:50 for pid in process_list: 12:48:50 shutdown_process(pid) 12:48:50 > sys.exit(1) 12:48:50 E SystemExit: 1 12:48:50 12:48:50 transportpce_tests/common/test_utils.py:233: SystemExit 12:48:50 ---------------------------- Captured stdout setup ----------------------------- 12:48:50 sample files content loaded 12:48:50 starting OpenDaylight... 12:48:50 starting KARAF (karaf) TransportPCE build... 12:48:50 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:48:50 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0bbd80> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0ba340> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0ba3e0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0bbd80> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de62700> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0ba3e0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de62fc0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de63420> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0ba3e0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de61ee0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de63240> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0ba3e0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de63240> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de63420> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0b9ee0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0b9da0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de61440> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0de60e00> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 12:48:50 12:48:50 cls = 12:48:50 func = . at 0x7f8f0e0b9ee0> 12:48:50 when = 'setup' 12:48:50 reraise = (, ) 12:48:50 12:48:50 @classmethod 12:48:50 def from_call( 12:48:50 cls, 12:48:50 func: Callable[[], TResult], 12:48:50 when: Literal["collect", "setup", "call", "teardown"], 12:48:50 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:48:50 ) -> CallInfo[TResult]: 12:48:50 """Call func, wrapping the result in a CallInfo. 12:48:50 12:48:50 :param func: 12:48:50 The function to call. Called without arguments. 12:48:50 :type func: Callable[[], _pytest.runner.TResult] 12:48:50 :param when: 12:48:50 The phase in which the function is called. 12:48:50 :param reraise: 12:48:50 Exception or exceptions that shall propagate if raised by the 12:48:50 function, instead of being wrapped in the CallInfo. 12:48:50 """ 12:48:50 excinfo = None 12:48:50 instant = timing.Instant() 12:48:50 try: 12:48:50 > result: TResult | None = func() 12:48:50 ^^^^^^ 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:48:50 lambda: runtest_hook(item=item, **kwds), 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:48:50 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:48:50 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:48:50 yield 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:48:50 return (yield) 12:48:50 ^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:48:50 item.session._setupstate.setup(item) 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:48:50 col.setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:48:50 super().setup() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:48:50 self._request._fillfixtures() 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:48:50 item.funcargs[argname] = self.getfixturevalue(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:48:50 fixturedef = self._get_active_fixturedef(argname) 12:48:50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:48:50 fixturedef.execute(request=subrequest) 12:48:50 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:48:50 12:48:50 self = 12:48:50 request = > 12:48:50 12:48:50 def execute(self, request: SubRequest) -> FixtureValue: 12:48:50 """Return the value of this fixture, executing it if not cached.""" 12:48:50 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:48:50 # This needs to be done before checking if we have a cached value, since 12:48:50 # if a dependent fixture has their cache invalidated, e.g. due to 12:48:50 # parametrization, they finalize themselves and fixtures depending on it 12:48:50 # (which will likely include this fixture) setting `self.cached_result = None`. 12:48:50 # See #4871 12:48:50 requested_fixtures_that_should_finalize_us = [] 12:48:50 for argname in self.argnames: 12:48:50 fixturedef = request._get_active_fixturedef(argname) 12:48:50 # Saves requested fixtures in a list so we later can add our finalizer 12:48:50 # to them, ensuring that if a requested fixture gets torn down we get torn 12:48:50 # down first. This is generally handled by SetupState, but still currently 12:48:50 # needed when this fixture is not parametrized but depends on a parametrized 12:48:50 # fixture. 12:48:50 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:48:50 12:48:50 # Check for (and return) cached value/exception. 12:48:50 if self.cached_result is not None: 12:48:50 request_cache_key = self.cache_key(request) 12:48:50 cache_key = self.cached_result[1] 12:48:50 try: 12:48:50 # Attempt to make a normal == check: this might fail for objects 12:48:50 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:48:50 cache_hit = bool(request_cache_key == cache_key) 12:48:50 except (ValueError, RuntimeError): 12:48:50 # If the comparison raises, use 'is' as fallback. 12:48:50 cache_hit = request_cache_key is cache_key 12:48:50 12:48:50 if cache_hit: 12:48:50 if self.cached_result[2] is not None: 12:48:50 exc, exc_tb = self.cached_result[2] 12:48:50 raise exc.with_traceback(exc_tb) 12:48:50 else: 12:48:50 return self.cached_result[0] 12:48:50 # We have a previous but differently parametrized fixture instance 12:48:50 # so we need to tear it down before creating a new one. 12:48:50 self.finish(request) 12:48:50 assert self.cached_result is None 12:48:50 12:48:50 # Add finalizer to requested fixtures we saved previously. 12:48:50 # We make sure to do this after checking for cached value to avoid 12:48:50 # adding our finalizer multiple times. (#12135) 12:48:50 finalizer = functools.partial(self.finish, request=request) 12:48:50 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:48:50 parent_fixture.addfinalizer(finalizer) 12:48:50 12:48:50 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:48:50 # which is executed last. 12:48:50 > assert not self._finalizers 12:48:50 ^^^^^^^^^^^^^^^^^^^^ 12:48:50 E AssertionError 12:48:50 12:48:50 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:48:50 =========================== short test summary info ============================ 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 12:48:50 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 12:48:50 20 errors in 124.07s (0:02:04) 12:48:50 testsPCE: exit 1 (124.35 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4857 12:48:51 testsPCE: FAIL ✖ in 2 minutes 47.32 seconds 12:48:51 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:48:51 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:48:51 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:48:57 tests190: freeze> python -m pip freeze --all 12:48:57 tests_tapi: freeze> python -m pip freeze --all 12:48:57 tests121: freeze> python -m pip freeze --all 12:48:57 tests190: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:48:57 tests190: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc 12:48:57 using environment variables from ./karafoc.env 12:48:57 pytest -q transportpce_tests/oc/test01_portmapping.py 12:48:57 tests_tapi: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:48:57 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 12:48:57 using environment variables from ./karaf221.env 12:48:57 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 12:48:57 tests121: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:48:57 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 12:48:57 using environment variables from ./karaf121.env 12:48:57 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 12:49:43 ........... [100%] 12:49:59 10 passed in 61.18s (0:01:01) 12:49:59 pytest -q transportpce_tests/oc/test02_topology.py 12:50:06 ..................E.EEEEEEEEEEE.EEEEEEEEEE.EEEEEEEEEE.EEEEEEEEEE.EEEEEEEEE [100%] 12:50:48 ==================================== ERRORS ==================================== 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 12:50:48 12:50:48 cls = 12:50:48 12:50:48 @classmethod 12:50:48 def setUpClass(cls): 12:50:48 cls.init_failed = False 12:50:48 os.environ['JAVA_MIN_MEM'] = '1024M' 12:50:48 os.environ['JAVA_MAX_MEM'] = '4096M' 12:50:48 > cls.processes = test_utils.start_tpce() 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 12:50:48 transportpce_tests/tapi/test01_abstracted_topology.py:148: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 def start_tpce(): 12:50:48 if 'NO_ODL_STARTUP' in os.environ: 12:50:48 print('No OpenDaylight instance to start!') 12:50:48 return [] 12:50:48 print('starting OpenDaylight...') 12:50:48 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:50:48 process = start_lighty() 12:50:48 else: 12:50:48 process = start_karaf() 12:50:48 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:50:48 print('OpenDaylight started !') 12:50:48 else: 12:50:48 print('OpenDaylight failed to start !') 12:50:48 shutdown_process(process) 12:50:48 for pid in process_list: 12:50:48 shutdown_process(pid) 12:50:48 > sys.exit(1) 12:50:48 E SystemExit: 1 12:50:48 12:50:48 transportpce_tests/common/test_utils.py:233: SystemExit 12:50:48 ---------------------------- Captured stdout setup ----------------------------- 12:50:48 starting OpenDaylight... 12:50:48 starting KARAF (karaf221) TransportPCE build... 12:50:48 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3a7a0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d8be20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d8b740> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d42e4900> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d40bede0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3aca0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d42e4900> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d40bede0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d42e4900> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d40bede0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d8b920> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d42e4900> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3aa20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193e700> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d42e4900> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d40bede0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193dda0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3ac00> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193c5e0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d440> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193ea20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d800> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d800> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193e980> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193eca0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193eb60> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193ede0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193eb60> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193e020> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193eb60> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193e5c0> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d760> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d800> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d800> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193f740> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193f240> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193d760> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d1d3af20> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 12:50:48 12:50:48 cls = 12:50:48 func = . at 0x7f59d193ed40> 12:50:48 when = 'setup' 12:50:48 reraise = (, ) 12:50:48 12:50:48 @classmethod 12:50:48 def from_call( 12:50:48 cls, 12:50:48 func: Callable[[], TResult], 12:50:48 when: Literal["collect", "setup", "call", "teardown"], 12:50:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:50:48 ) -> CallInfo[TResult]: 12:50:48 """Call func, wrapping the result in a CallInfo. 12:50:48 12:50:48 :param func: 12:50:48 The function to call. Called without arguments. 12:50:48 :type func: Callable[[], _pytest.runner.TResult] 12:50:48 :param when: 12:50:48 The phase in which the function is called. 12:50:48 :param reraise: 12:50:48 Exception or exceptions that shall propagate if raised by the 12:50:48 function, instead of being wrapped in the CallInfo. 12:50:48 """ 12:50:48 excinfo = None 12:50:48 instant = timing.Instant() 12:50:48 try: 12:50:48 > result: TResult | None = func() 12:50:48 ^^^^^^ 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:50:48 lambda: runtest_hook(item=item, **kwds), 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:50:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:50:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:50:48 yield 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:50:48 return (yield) 12:50:48 ^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:50:48 item.session._setupstate.setup(item) 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:50:48 col.setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:50:48 super().setup() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:50:48 self._request._fillfixtures() 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:50:48 item.funcargs[argname] = self.getfixturevalue(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:50:48 fixturedef = self._get_active_fixturedef(argname) 12:50:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:50:48 fixturedef.execute(request=subrequest) 12:50:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:50:48 12:50:48 self = 12:50:48 request = > 12:50:48 12:50:48 def execute(self, request: SubRequest) -> FixtureValue: 12:50:48 """Return the value of this fixture, executing it if not cached.""" 12:50:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:50:48 # This needs to be done before checking if we have a cached value, since 12:50:48 # if a dependent fixture has their cache invalidated, e.g. due to 12:50:48 # parametrization, they finalize themselves and fixtures depending on it 12:50:48 # (which will likely include this fixture) setting `self.cached_result = None`. 12:50:48 # See #4871 12:50:48 requested_fixtures_that_should_finalize_us = [] 12:50:48 for argname in self.argnames: 12:50:48 fixturedef = request._get_active_fixturedef(argname) 12:50:48 # Saves requested fixtures in a list so we later can add our finalizer 12:50:48 # to them, ensuring that if a requested fixture gets torn down we get torn 12:50:48 # down first. This is generally handled by SetupState, but still currently 12:50:48 # needed when this fixture is not parametrized but depends on a parametrized 12:50:48 # fixture. 12:50:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:50:48 12:50:48 # Check for (and return) cached value/exception. 12:50:48 if self.cached_result is not None: 12:50:48 request_cache_key = self.cache_key(request) 12:50:48 cache_key = self.cached_result[1] 12:50:48 try: 12:50:48 # Attempt to make a normal == check: this might fail for objects 12:50:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:50:48 cache_hit = bool(request_cache_key == cache_key) 12:50:48 except (ValueError, RuntimeError): 12:50:48 # If the comparison raises, use 'is' as fallback. 12:50:48 cache_hit = request_cache_key is cache_key 12:50:48 12:50:48 if cache_hit: 12:50:48 if self.cached_result[2] is not None: 12:50:48 exc, exc_tb = self.cached_result[2] 12:50:48 raise exc.with_traceback(exc_tb) 12:50:48 else: 12:50:48 return self.cached_result[0] 12:50:48 # We have a previous but differently parametrized fixture instance 12:50:48 # so we need to tear it down before creating a new one. 12:50:48 self.finish(request) 12:50:48 assert self.cached_result is None 12:50:48 12:50:48 # Add finalizer to requested fixtures we saved previously. 12:50:48 # We make sure to do this after checking for cached value to avoid 12:50:48 # adding our finalizer multiple times. (#12135) 12:50:48 finalizer = functools.partial(self.finish, request=request) 12:50:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:50:48 parent_fixture.addfinalizer(finalizer) 12:50:48 12:50:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:50:48 # which is executed last. 12:50:48 > assert not self._finalizers 12:50:48 ^^^^^^^^^^^^^^^^^^^^ 12:50:48 E AssertionError 12:50:48 12:50:48 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:50:48 =========================== short test summary info ============================ 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 12:50:48 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 12:50:48 51 errors in 110.29s (0:01:50) 12:50:48 tests_tapi: exit 1 (110.57 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4968 12:50:48 tests_tapi: FAIL ✖ in 1 minute 57.57 seconds 12:50:48 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:50:48 ...tests221: freeze> python -m pip freeze --all 12:50:54 .tests221: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:50:54 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 12:50:54 using environment variables from ./karaf221.env 12:50:54 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 12:50:56 . [100%] 12:50:58 14 passed in 59.28s 12:50:58 pytest -q transportpce_tests/oc/test03_renderer.py 12:51:21 ................... [100%] 12:51:47 19 passed in 48.58s 12:51:47 pytest -q transportpce_tests/oc/test04_end2end.py 12:52:29 ...EEEEEEEEEEE.EEEEEEEEEEEEEEEEEE.EEEEEE [100%] 12:52:42 ==================================== ERRORS ==================================== 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 12:52:42 12:52:42 cls = 12:52:42 12:52:42 @classmethod 12:52:42 def setUpClass(cls): 12:52:42 > cls.processes = test_utils.start_tpce() 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 12:52:42 transportpce_tests/2.2.1/test01_portmapping.py:33: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 def start_tpce(): 12:52:42 if 'NO_ODL_STARTUP' in os.environ: 12:52:42 print('No OpenDaylight instance to start!') 12:52:42 return [] 12:52:42 print('starting OpenDaylight...') 12:52:42 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:52:42 process = start_lighty() 12:52:42 else: 12:52:42 process = start_karaf() 12:52:42 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:52:42 print('OpenDaylight started !') 12:52:42 else: 12:52:42 print('OpenDaylight failed to start !') 12:52:42 shutdown_process(process) 12:52:42 for pid in process_list: 12:52:42 shutdown_process(pid) 12:52:42 > sys.exit(1) 12:52:42 E SystemExit: 1 12:52:42 12:52:42 transportpce_tests/common/test_utils.py:233: SystemExit 12:52:42 ---------------------------- Captured stdout setup ----------------------------- 12:52:42 starting OpenDaylight... 12:52:42 starting KARAF (karaf221) TransportPCE build... 12:52:42 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:52:42 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6853527880> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356efc0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f68558bafc0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6854cf1300> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356f4c0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6854cf2160> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f68558bafc0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356e020> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f68558bafc0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356e7a0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356e020> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356f2e0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356e2a0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356ff60> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356dd00> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356df80> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356dd00> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f68535262a0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6853526480> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f68535262a0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6853526480> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356fe20> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356e2a0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356fe20> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6852fb4d60> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356fe20> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6852fb5580> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6852fb40e0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356fe20> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6852fb4ae0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6852fb44a0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356fe20> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f6852fb47c0> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 12:52:42 12:52:42 cls = 12:52:42 func = . at 0x7f685356fe20> 12:52:42 when = 'setup' 12:52:42 reraise = (, ) 12:52:42 12:52:42 @classmethod 12:52:42 def from_call( 12:52:42 cls, 12:52:42 func: Callable[[], TResult], 12:52:42 when: Literal["collect", "setup", "call", "teardown"], 12:52:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:52:42 ) -> CallInfo[TResult]: 12:52:42 """Call func, wrapping the result in a CallInfo. 12:52:42 12:52:42 :param func: 12:52:42 The function to call. Called without arguments. 12:52:42 :type func: Callable[[], _pytest.runner.TResult] 12:52:42 :param when: 12:52:42 The phase in which the function is called. 12:52:42 :param reraise: 12:52:42 Exception or exceptions that shall propagate if raised by the 12:52:42 function, instead of being wrapped in the CallInfo. 12:52:42 """ 12:52:42 excinfo = None 12:52:42 instant = timing.Instant() 12:52:42 try: 12:52:42 > result: TResult | None = func() 12:52:42 ^^^^^^ 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:52:42 lambda: runtest_hook(item=item, **kwds), 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:52:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:52:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:52:42 yield 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:52:42 return (yield) 12:52:42 ^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:52:42 item.session._setupstate.setup(item) 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:52:42 col.setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:52:42 super().setup() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:52:42 self._request._fillfixtures() 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:52:42 item.funcargs[argname] = self.getfixturevalue(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:52:42 fixturedef = self._get_active_fixturedef(argname) 12:52:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:52:42 fixturedef.execute(request=subrequest) 12:52:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:52:42 12:52:42 self = 12:52:42 request = > 12:52:42 12:52:42 def execute(self, request: SubRequest) -> FixtureValue: 12:52:42 """Return the value of this fixture, executing it if not cached.""" 12:52:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:52:42 # This needs to be done before checking if we have a cached value, since 12:52:42 # if a dependent fixture has their cache invalidated, e.g. due to 12:52:42 # parametrization, they finalize themselves and fixtures depending on it 12:52:42 # (which will likely include this fixture) setting `self.cached_result = None`. 12:52:42 # See #4871 12:52:42 requested_fixtures_that_should_finalize_us = [] 12:52:42 for argname in self.argnames: 12:52:42 fixturedef = request._get_active_fixturedef(argname) 12:52:42 # Saves requested fixtures in a list so we later can add our finalizer 12:52:42 # to them, ensuring that if a requested fixture gets torn down we get torn 12:52:42 # down first. This is generally handled by SetupState, but still currently 12:52:42 # needed when this fixture is not parametrized but depends on a parametrized 12:52:42 # fixture. 12:52:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:52:42 12:52:42 # Check for (and return) cached value/exception. 12:52:42 if self.cached_result is not None: 12:52:42 request_cache_key = self.cache_key(request) 12:52:42 cache_key = self.cached_result[1] 12:52:42 try: 12:52:42 # Attempt to make a normal == check: this might fail for objects 12:52:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:52:42 cache_hit = bool(request_cache_key == cache_key) 12:52:42 except (ValueError, RuntimeError): 12:52:42 # If the comparison raises, use 'is' as fallback. 12:52:42 cache_hit = request_cache_key is cache_key 12:52:42 12:52:42 if cache_hit: 12:52:42 if self.cached_result[2] is not None: 12:52:42 exc, exc_tb = self.cached_result[2] 12:52:42 raise exc.with_traceback(exc_tb) 12:52:42 else: 12:52:42 return self.cached_result[0] 12:52:42 # We have a previous but differently parametrized fixture instance 12:52:42 # so we need to tear it down before creating a new one. 12:52:42 self.finish(request) 12:52:42 assert self.cached_result is None 12:52:42 12:52:42 # Add finalizer to requested fixtures we saved previously. 12:52:42 # We make sure to do this after checking for cached value to avoid 12:52:42 # adding our finalizer multiple times. (#12135) 12:52:42 finalizer = functools.partial(self.finish, request=request) 12:52:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:52:42 parent_fixture.addfinalizer(finalizer) 12:52:42 12:52:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:52:42 # which is executed last. 12:52:42 > assert not self._finalizers 12:52:42 ^^^^^^^^^^^^^^^^^^^^ 12:52:42 E AssertionError 12:52:42 12:52:42 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:52:42 =========================== short test summary info ============================ 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 12:52:42 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 12:52:42 35 errors in 107.34s (0:01:47) 12:52:42 tests221: exit 1 (107.63 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=7062 12:52:42 tests221: FAIL ✖ in 1 minute 54.17 seconds 12:52:42 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:52:44 ..tests_hybrid: freeze> python -m pip freeze --all 12:52:49 tests_hybrid: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:52:49 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 12:52:49 using environment variables from ./karaf221.env 12:52:49 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 12:52:50 .................. [100%] 12:53:45 21 passed in 287.80s (0:04:47) 12:53:45 pytest -q transportpce_tests/1.2.1/test02_topo_portmapping.py 12:53:47 ...........EE.EEEEEEEEEEEE [100%] 12:54:33 6 passed in 46.94s 12:54:33 pytest -q transportpce_tests/1.2.1/test03_topology.py 12:54:33 EE.EEEEE.EEEEEE.EEEE.EEEEEE.EEEEEEEEEEEEEE [100%] 12:54:40 ==================================== ERRORS ==================================== 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 12:54:40 12:54:40 cls = 12:54:40 12:54:40 @classmethod 12:54:40 def setUpClass(cls): 12:54:40 > cls.processes = test_utils.start_tpce() 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 12:54:40 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 def start_tpce(): 12:54:40 if 'NO_ODL_STARTUP' in os.environ: 12:54:40 print('No OpenDaylight instance to start!') 12:54:40 return [] 12:54:40 print('starting OpenDaylight...') 12:54:40 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:54:40 process = start_lighty() 12:54:40 else: 12:54:40 process = start_karaf() 12:54:40 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:54:40 print('OpenDaylight started !') 12:54:40 else: 12:54:40 print('OpenDaylight failed to start !') 12:54:40 shutdown_process(process) 12:54:40 for pid in process_list: 12:54:40 shutdown_process(pid) 12:54:40 > sys.exit(1) 12:54:40 E SystemExit: 1 12:54:40 12:54:40 transportpce_tests/common/test_utils.py:233: SystemExit 12:54:40 ---------------------------- Captured stdout setup ----------------------------- 12:54:40 starting OpenDaylight... 12:54:40 starting KARAF (karaf221) TransportPCE build... 12:54:40 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516de0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71956bb00> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71b89aca0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719515bc0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71ac91da0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719515bc0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71956b380> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71956aa20> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71bac07c0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719515bc0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2da80> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719515bc0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71bac07c0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2dee0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719515e40> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71956bb00> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719515e40> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71bac07c0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc71bac07c0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e200> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e200> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2c9a0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2d580> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e3e0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2d800> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2c540> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2d080> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2c540> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2d8a0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e0c0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2eb60> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2dbc0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2ee80> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2d8a0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2d440> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc719516160> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 12:54:40 12:54:40 cls = 12:54:40 func = . at 0x7fc718f2e5c0> 12:54:40 when = 'setup' 12:54:40 reraise = (, ) 12:54:40 12:54:40 @classmethod 12:54:40 def from_call( 12:54:40 cls, 12:54:40 func: Callable[[], TResult], 12:54:40 when: Literal["collect", "setup", "call", "teardown"], 12:54:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:40 ) -> CallInfo[TResult]: 12:54:40 """Call func, wrapping the result in a CallInfo. 12:54:40 12:54:40 :param func: 12:54:40 The function to call. Called without arguments. 12:54:40 :type func: Callable[[], _pytest.runner.TResult] 12:54:40 :param when: 12:54:40 The phase in which the function is called. 12:54:40 :param reraise: 12:54:40 Exception or exceptions that shall propagate if raised by the 12:54:40 function, instead of being wrapped in the CallInfo. 12:54:40 """ 12:54:40 excinfo = None 12:54:40 instant = timing.Instant() 12:54:40 try: 12:54:40 > result: TResult | None = func() 12:54:40 ^^^^^^ 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:40 lambda: runtest_hook(item=item, **kwds), 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:40 yield 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:40 return (yield) 12:54:40 ^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:40 item.session._setupstate.setup(item) 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:40 col.setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:40 super().setup() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:40 self._request._fillfixtures() 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:40 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:40 fixturedef = self._get_active_fixturedef(argname) 12:54:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:40 fixturedef.execute(request=subrequest) 12:54:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:40 12:54:40 self = 12:54:40 request = > 12:54:40 12:54:40 def execute(self, request: SubRequest) -> FixtureValue: 12:54:40 """Return the value of this fixture, executing it if not cached.""" 12:54:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:40 # This needs to be done before checking if we have a cached value, since 12:54:40 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:40 # parametrization, they finalize themselves and fixtures depending on it 12:54:40 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:40 # See #4871 12:54:40 requested_fixtures_that_should_finalize_us = [] 12:54:40 for argname in self.argnames: 12:54:40 fixturedef = request._get_active_fixturedef(argname) 12:54:40 # Saves requested fixtures in a list so we later can add our finalizer 12:54:40 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:40 # down first. This is generally handled by SetupState, but still currently 12:54:40 # needed when this fixture is not parametrized but depends on a parametrized 12:54:40 # fixture. 12:54:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:40 12:54:40 # Check for (and return) cached value/exception. 12:54:40 if self.cached_result is not None: 12:54:40 request_cache_key = self.cache_key(request) 12:54:40 cache_key = self.cached_result[1] 12:54:40 try: 12:54:40 # Attempt to make a normal == check: this might fail for objects 12:54:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:40 cache_hit = bool(request_cache_key == cache_key) 12:54:40 except (ValueError, RuntimeError): 12:54:40 # If the comparison raises, use 'is' as fallback. 12:54:40 cache_hit = request_cache_key is cache_key 12:54:40 12:54:40 if cache_hit: 12:54:40 if self.cached_result[2] is not None: 12:54:40 exc, exc_tb = self.cached_result[2] 12:54:40 raise exc.with_traceback(exc_tb) 12:54:40 else: 12:54:40 return self.cached_result[0] 12:54:40 # We have a previous but differently parametrized fixture instance 12:54:40 # so we need to tear it down before creating a new one. 12:54:40 self.finish(request) 12:54:40 assert self.cached_result is None 12:54:40 12:54:40 # Add finalizer to requested fixtures we saved previously. 12:54:40 # We make sure to do this after checking for cached value to avoid 12:54:40 # adding our finalizer multiple times. (#12135) 12:54:40 finalizer = functools.partial(self.finish, request=request) 12:54:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:40 parent_fixture.addfinalizer(finalizer) 12:54:40 12:54:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:40 # which is executed last. 12:54:40 > assert not self._finalizers 12:54:40 ^^^^^^^^^^^^^^^^^^^^ 12:54:40 E AssertionError 12:54:40 12:54:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:40 =========================== short test summary info ============================ 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 12:54:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 12:54:40 51 errors in 110.72s (0:01:50) 12:54:40 tests_hybrid: exit 1 (111.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=8886 12:54:41 [100%] 12:54:41 30 passed in 173.34s (0:02:53) 12:54:41 tests_hybrid: FAIL ✖ in 1 minute 58.37 seconds 12:54:41 tests190: OK ✔ in 5 minutes 50.39 seconds 12:54:41 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:54:49 tests71: freeze> python -m pip freeze --all 12:54:49 tests71: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 12:54:49 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 12:54:49 using environment variables from ./karaf71.env 12:54:49 pytest -q transportpce_tests/7.1/test01_portmapping.py 12:55:32 ................... [100%] 12:55:46 12 passed in 56.27s 12:55:46 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 12:55:48 ............................................................... [100%] 12:57:10 44 passed in 157.13s (0:02:37) 12:57:10 pytest -q transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py 12:57:11 ........................................................ [100%] 12:58:26 62 passed in 159.50s (0:02:39) 12:58:26 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 12:58:27 .... [100%] 12:58:35 24 passed in 85.09s (0:01:25) 12:58:36 pytest -q transportpce_tests/1.2.1/test05_olm.py 12:59:10 ............................................................................ [100%] 13:00:55 48 passed in 148.95s (0:02:28) 13:00:55 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 13:01:03 .......................... [100%] 13:01:54 40 passed in 198.04s (0:03:18) 13:01:54 pytest -q transportpce_tests/1.2.1/test06_end2end.py 13:01:54 ........ [100%] 13:02:10 22 passed in 74.95s (0:01:14) 13:02:35 ...................................................... [100%] 13:16:51 54 passed in 896.48s (0:14:56) 13:16:51 tests71: OK ✔ in 7 minutes 29.71 seconds 13:16:51 buildcontroller: FAIL code 1 (65.91=setup[8.25]+cmd[57.66] seconds) 13:16:51 sims: OK (12.79=setup[9.73]+cmd[3.06] seconds) 13:16:51 build_karaf_tests121: OK (74.53=setup[7.00]+cmd[67.54] seconds) 13:16:51 testsPCE: FAIL code 1 (167.32=setup[42.97]+cmd[124.35] seconds) 13:16:51 tests121: OK (1680.44=setup[7.06]+cmd[1673.37] seconds) 13:16:51 build_karaf_tests221: FAIL code 127 (28.31=setup[7.08]+cmd[21.23] seconds) 13:16:51 tests_tapi: FAIL code 1 (117.57=setup[7.01]+cmd[110.57] seconds) 13:16:51 tests221: FAIL code 1 (114.17=setup[6.54]+cmd[107.63] seconds) 13:16:51 build_karaf_tests71: OK (74.08=setup[6.98]+cmd[67.10] seconds) 13:16:51 tests71: OK (449.71=setup[8.70]+cmd[441.01] seconds) 13:16:51 build_karaf_tests190: OK (71.05=setup[7.42]+cmd[63.63] seconds) 13:16:51 tests190: OK (350.39=setup[6.89]+cmd[343.50] seconds) 13:16:51 tests_hybrid: FAIL code 1 (118.37=setup[7.35]+cmd[111.02] seconds) 13:16:51 buildlighty: OK (42.89=setup[16.44]+cmd[26.45] seconds) 13:16:51 docs: OK (19.38=setup[15.76]+cmd[3.62] seconds) 13:16:51 docs-linkcheck: OK (20.95=setup[16.32]+cmd[4.63] seconds) 13:16:51 checkbashisms: OK (3.40=setup[2.16]+cmd[0.00,0.05,1.18] seconds) 13:16:51 pre-commit: OK (63.98=setup[2.80]+cmd[0.00,0.00,53.02,8.15] seconds) 13:16:51 pylint: OK (32.14=setup[3.43]+cmd[28.70] seconds) 13:16:51 evaluation failed :( (1988.26 seconds) 13:16:51 + tox_status=1 13:16:51 + echo '---> Completed tox runs' 13:16:51 ---> Completed tox runs 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/build_karaf_tests121/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=build_karaf_tests121 13:16:51 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/build_karaf_tests190/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=build_karaf_tests190 13:16:51 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests190 13:16:51 + for i in .tox/*/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 ++ echo .tox/build_karaf_tests221/log 13:16:51 + tox_env=build_karaf_tests221 13:16:51 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/build_karaf_tests71/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=build_karaf_tests71 13:16:51 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/buildcontroller/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=buildcontroller 13:16:51 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/buildlighty/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=buildlighty 13:16:51 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/checkbashisms/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=checkbashisms 13:16:51 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/docs-linkcheck/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=docs-linkcheck 13:16:51 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/docs/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=docs 13:16:51 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/pre-commit/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=pre-commit 13:16:51 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/pylint/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=pylint 13:16:51 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/sims/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=sims 13:16:51 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/tests121/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=tests121 13:16:51 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/tests190/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=tests190 13:16:51 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests190 13:16:51 + for i in .tox/*/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 ++ echo .tox/tests221/log 13:16:51 + tox_env=tests221 13:16:51 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/tests71/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=tests71 13:16:51 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/testsPCE/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=testsPCE 13:16:51 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/tests_hybrid/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=tests_hybrid 13:16:51 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 13:16:51 + for i in .tox/*/log 13:16:51 ++ echo .tox/tests_tapi/log 13:16:51 ++ awk -F/ '{print $2}' 13:16:51 + tox_env=tests_tapi 13:16:51 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 13:16:51 + DOC_DIR=docs/_build/html 13:16:51 + [[ -d docs/_build/html ]] 13:16:51 + echo '---> Archiving generated docs' 13:16:51 ---> Archiving generated docs 13:16:51 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:16:51 + echo '---> tox-run.sh ends' 13:16:51 ---> tox-run.sh ends 13:16:51 + test 1 -eq 0 13:16:51 + exit 1 13:16:51 ++ '[' 1 = 1 ']' 13:16:51 ++ '[' -x /usr/bin/clear_console ']' 13:16:51 ++ /usr/bin/clear_console -q 13:16:51 Build step 'Execute shell' marked build as failure 13:16:51 $ ssh-agent -k 13:16:51 unset SSH_AUTH_SOCK; 13:16:51 unset SSH_AGENT_PID; 13:16:51 echo Agent pid 1552 killed; 13:16:51 [ssh-agent] Stopped. 13:16:51 [PostBuildScript] - [INFO] Executing post build scripts. 13:16:51 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16541491908017430180.sh 13:16:51 ---> sysstat.sh 13:16:52 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16320084870731017140.sh 13:16:52 ---> package-listing.sh 13:16:52 ++ facter osfamily 13:16:52 ++ tr '[:upper:]' '[:lower:]' 13:16:52 + OS_FAMILY=debian 13:16:52 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 13:16:52 + START_PACKAGES=/tmp/packages_start.txt 13:16:52 + END_PACKAGES=/tmp/packages_end.txt 13:16:52 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:16:52 + PACKAGES=/tmp/packages_start.txt 13:16:52 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:16:52 + PACKAGES=/tmp/packages_end.txt 13:16:52 + case "${OS_FAMILY}" in 13:16:52 + dpkg -l 13:16:52 + grep '^ii' 13:16:52 + '[' -f /tmp/packages_start.txt ']' 13:16:52 + '[' -f /tmp/packages_end.txt ']' 13:16:52 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:16:52 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:16:52 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:16:52 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:16:52 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8374521473116990445.sh 13:16:52 ---> capture-instance-metadata.sh 13:16:52 Setup pyenv: 13:16:52 system 13:16:52 3.8.20 13:16:52 3.9.20 13:16:52 3.10.15 13:16:52 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:16:52 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-owWC from file:/tmp/.os_lf_venv 13:16:52 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:16:52 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:16:54 lf-activate-venv(): INFO: Base packages installed successfully 13:16:54 lf-activate-venv(): INFO: Installing additional packages: lftools 13:17:08 lf-activate-venv(): INFO: Adding /tmp/venv-owWC/bin to PATH 13:17:08 INFO: Running in OpenStack, capturing instance metadata 13:17:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10010116369132511996.sh 13:17:08 provisioning config files... 13:17:09 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #5799 13:17:09 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config14065032685461724139tmp 13:17:09 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 13:17:09 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 13:17:09 provisioning config files... 13:17:09 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 13:17:09 [EnvInject] - Injecting environment variables from a build step. 13:17:09 [EnvInject] - Injecting as environment variables the properties content 13:17:09 SERVER_ID=logs 13:17:09 13:17:09 [EnvInject] - Variables injected successfully. 13:17:09 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4768213803396975323.sh 13:17:09 ---> create-netrc.sh 13:17:09 WARN: Log server credential not found. 13:17:09 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12264161722478068848.sh 13:17:09 ---> python-tools-install.sh 13:17:09 Setup pyenv: 13:17:09 system 13:17:09 3.8.20 13:17:09 3.9.20 13:17:09 3.10.15 13:17:09 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:17:09 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-owWC from file:/tmp/.os_lf_venv 13:17:09 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:17:09 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:17:11 lf-activate-venv(): INFO: Base packages installed successfully 13:17:11 lf-activate-venv(): INFO: Installing additional packages: lftools 13:17:20 lf-activate-venv(): INFO: Adding /tmp/venv-owWC/bin to PATH 13:17:20 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins11283413380938026529.sh 13:17:20 ---> uv-install.sh 13:17:20 uv 0.11.26 is already installed 13:17:20 uvx 0.11.26 (x86_64-unknown-linux-gnu) 13:17:20 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17866294417736547915.sh 13:17:20 ---> sudo-logs.sh 13:17:20 Archiving 'sudo' log.. 13:17:20 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10797734518135633370.sh 13:17:20 ---> job-cost.sh 13:17:20 INFO: Activating Python virtual environment... 13:17:20 Setup pyenv: 13:17:21 system 13:17:21 3.8.20 13:17:21 3.9.20 13:17:21 3.10.15 13:17:21 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:17:21 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-owWC from file:/tmp/.os_lf_venv 13:17:21 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:17:21 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:17:23 lf-activate-venv(): INFO: Base packages installed successfully 13:17:23 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 13:17:29 lf-activate-venv(): INFO: Adding /tmp/venv-owWC/bin to PATH 13:17:29 INFO: No stack-cost file found 13:17:29 INFO: Instance uptime: 2166s 13:17:29 INFO: Fetching instance metadata (attempt 1 of 3)... 13:17:29 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 13:17:29 INFO: Successfully fetched instance metadata 13:17:29 INFO: Instance type: v3-standard-4 13:17:29 INFO: Retrieving pricing info for: v3-standard-4 13:17:29 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 13:17:29 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=2166 13:17:30 INFO: Successfully fetched Vexxhost pricing API 13:17:30 INFO: Retrieved cost: 0.11 13:17:30 INFO: Retrieved resource: v3-standard-4 13:17:30 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 13:17:30 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 13:17:30 INFO: Successfully archived job cost data 13:17:30 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,5799,2026-07-03 13:17:30,v3-standard-4,2166,0.11,0.00,FAILURE 13:17:30 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins16279523555903175521.sh 13:17:30 ---> logs-deploy.sh 13:17:30 Setup pyenv: 13:17:30 system 13:17:30 3.8.20 13:17:30 3.9.20 13:17:30 3.10.15 13:17:30 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:17:30 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-owWC from file:/tmp/.os_lf_venv 13:17:30 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:17:30 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:17:32 lf-activate-venv(): INFO: Base packages installed successfully 13:17:32 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 13:17:41 lf-activate-venv(): INFO: Adding /tmp/venv-owWC/bin to PATH 13:17:41 WARNING: Nexus logging server not set 13:17:41 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/5799/ 13:17:41 INFO: archiving logs to S3 13:17:43 ---> uname -a: 13:17:43 Linux prd-ubuntu2204-docker-4c-16g-32649 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 13:17:43 13:17:43 13:17:43 ---> lscpu: 13:17:43 Architecture: x86_64 13:17:43 CPU op-mode(s): 32-bit, 64-bit 13:17:43 Address sizes: 40 bits physical, 48 bits virtual 13:17:43 Byte Order: Little Endian 13:17:43 CPU(s): 4 13:17:43 On-line CPU(s) list: 0-3 13:17:43 Vendor ID: AuthenticAMD 13:17:43 Model name: AMD EPYC-Rome Processor 13:17:43 CPU family: 23 13:17:43 Model: 49 13:17:43 Thread(s) per core: 1 13:17:43 Core(s) per socket: 1 13:17:43 Socket(s): 4 13:17:43 Stepping: 0 13:17:43 BogoMIPS: 5599.99 13:17:43 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities 13:17:43 Virtualization: AMD-V 13:17:43 Hypervisor vendor: KVM 13:17:43 Virtualization type: full 13:17:43 L1d cache: 128 KiB (4 instances) 13:17:43 L1i cache: 128 KiB (4 instances) 13:17:43 L2 cache: 2 MiB (4 instances) 13:17:43 L3 cache: 64 MiB (4 instances) 13:17:43 NUMA node(s): 1 13:17:43 NUMA node0 CPU(s): 0-3 13:17:43 Vulnerability Gather data sampling: Not affected 13:17:43 Vulnerability Indirect target selection: Not affected 13:17:43 Vulnerability Itlb multihit: Not affected 13:17:43 Vulnerability L1tf: Not affected 13:17:43 Vulnerability Mds: Not affected 13:17:43 Vulnerability Meltdown: Not affected 13:17:43 Vulnerability Mmio stale data: Not affected 13:17:43 Vulnerability Reg file data sampling: Not affected 13:17:43 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 13:17:43 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 13:17:43 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 13:17:43 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 13:17:43 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 13:17:43 Vulnerability Srbds: Not affected 13:17:43 Vulnerability Tsa: Not affected 13:17:43 Vulnerability Tsx async abort: Not affected 13:17:43 Vulnerability Vmscape: Not affected 13:17:43 13:17:43 13:17:43 ---> nproc: 13:17:43 4 13:17:43 13:17:43 13:17:43 ---> df -h: 13:17:43 Filesystem Size Used Avail Use% Mounted on 13:17:43 tmpfs 1.6G 1.1M 1.6G 1% /run 13:17:43 /dev/vda1 78G 15G 63G 20% / 13:17:43 tmpfs 7.9G 0 7.9G 0% /dev/shm 13:17:43 tmpfs 5.0M 0 5.0M 0% /run/lock 13:17:43 /dev/vda15 105M 6.1M 99M 6% /boot/efi 13:17:43 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 13:17:43 13:17:43 13:17:43 ---> free -m: 13:17:43 total used free shared buff/cache available 13:17:43 Mem: 15989 739 6241 3 9008 14907 13:17:43 Swap: 1023 0 1023 13:17:43 13:17:43 13:17:43 ---> ip addr: 13:17:43 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 13:17:43 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 13:17:43 inet 127.0.0.1/8 scope host lo 13:17:43 valid_lft forever preferred_lft forever 13:17:43 inet6 ::1/128 scope host 13:17:43 valid_lft forever preferred_lft forever 13:17:43 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 13:17:43 link/ether fa:16:3e:8e:ca:30 brd ff:ff:ff:ff:ff:ff 13:17:43 altname enp0s3 13:17:43 inet 10.30.171.133/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 13:17:43 valid_lft 84228sec preferred_lft 84228sec 13:17:43 inet6 fe80::f816:3eff:fe8e:ca30/64 scope link 13:17:43 valid_lft forever preferred_lft forever 13:17:43 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 13:17:43 link/ether 22:21:0d:3d:b8:15 brd ff:ff:ff:ff:ff:ff 13:17:43 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 13:17:43 valid_lft forever preferred_lft forever 13:17:43 inet6 fe80::2021:dff:fe3d:b815/64 scope link 13:17:43 valid_lft forever preferred_lft forever 13:17:43 13:17:43 13:17:43 ---> sar -b -r -n DEV: 13:17:43 Linux 5.15.0-174-generic (prd-ubuntu2204-docker-4c-16g-32649) 07/03/26 _x86_64_ (4 CPU) 13:17:43 13:17:43 12:41:34 LINUX RESTART (4 CPU) 13:17:43 13:17:43 12:50:15 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 13:17:43 13:00:15 31.33 1.25 28.51 1.57 76.57 2144.76 640.32 13:17:43 13:10:01 7.32 0.04 6.98 0.30 1.50 157.65 105.17 13:17:43 Average: 19.47 0.65 17.87 0.94 39.49 1163.18 375.97 13:17:43 13:17:43 12:50:15 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 13:17:43 13:00:15 171236 8961888 6962304 42.52 246972 8342500 7722384 44.33 1890888 13532880 420 13:17:43 13:10:01 2571592 11333668 4592492 28.05 247864 8314048 5303696 30.44 1888212 11142128 308 13:17:43 Average: 1371414 10147778 5777398 35.29 247418 8328274 6513040 37.38 1889550 12337504 364 13:17:43 13:17:43 12:50:15 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 13:17:43 13:00:15 lo 26.85 26.85 16.25 16.25 0.00 0.00 0.00 0.00 13:17:43 13:00:15 ens3 3.31 2.83 0.83 3.06 0.00 0.00 0.00 0.00 13:17:43 13:00:15 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:17:43 13:10:01 lo 27.20 27.20 9.36 9.36 0.00 0.00 0.00 0.00 13:17:43 13:10:01 ens3 0.84 0.62 0.18 0.14 0.00 0.00 0.00 0.00 13:17:43 13:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:17:43 Average: lo 27.02 27.02 12.85 12.85 0.00 0.00 0.00 0.00 13:17:43 Average: ens3 2.09 1.74 0.51 1.62 0.00 0.00 0.00 0.00 13:17:43 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:17:43 13:17:43 13:17:43 ---> sar -P ALL: 13:17:43 Linux 5.15.0-174-generic (prd-ubuntu2204-docker-4c-16g-32649) 07/03/26 _x86_64_ (4 CPU) 13:17:43 13:17:43 12:41:34 LINUX RESTART (4 CPU) 13:17:43 13:17:43 12:50:15 CPU %user %nice %system %iowait %steal %idle 13:17:43 13:00:15 all 45.15 0.00 1.59 0.07 0.10 53.09 13:17:43 13:00:15 0 45.18 0.00 1.54 0.11 0.11 53.07 13:17:43 13:00:15 1 45.71 0.00 1.56 0.12 0.10 52.51 13:17:43 13:00:15 2 46.01 0.00 1.59 0.04 0.11 52.26 13:17:43 13:00:15 3 43.69 0.00 1.66 0.04 0.10 54.51 13:17:43 13:10:01 all 12.77 0.00 0.64 0.03 0.08 86.49 13:17:43 13:10:01 0 12.76 0.00 0.56 0.01 0.07 86.59 13:17:43 13:10:01 1 13.12 0.00 0.67 0.05 0.08 86.08 13:17:43 13:10:01 2 12.86 0.00 0.60 0.02 0.07 86.45 13:17:43 13:10:01 3 12.35 0.00 0.71 0.03 0.08 86.84 13:17:43 Average: all 29.14 0.00 1.12 0.05 0.09 69.60 13:17:43 Average: 0 29.15 0.00 1.06 0.06 0.09 69.65 13:17:43 Average: 1 29.60 0.00 1.12 0.08 0.09 69.10 13:17:43 Average: 2 29.62 0.00 1.10 0.03 0.09 69.16 13:17:43 Average: 3 28.20 0.00 1.19 0.03 0.09 70.49 13:17:43 13:17:43 13:17:43