21:12:51 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125967 21:12:51 Running as SYSTEM 21:12:51 [EnvInject] - Loading node environment variables. 21:12:51 Building remotely on prd-ubuntu2204-docker-4c-16g-6887 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-chromium 21:12:51 [ssh-agent] Looking for ssh-agent implementation... 21:12:52 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 21:12:52 $ ssh-agent 21:12:52 SSH_AUTH_SOCK=/tmp/ssh-XXXXXX8CWZ4s/agent.1552 21:12:52 SSH_AGENT_PID=1554 21:12:52 [ssh-agent] Started. 21:12:52 Running ssh-add (command line suppressed) 21:12:52 Identity added: /w/workspace/transportpce-tox-verify-chromium@tmp/private_key_8939979151693996803.key (/w/workspace/transportpce-tox-verify-chromium@tmp/private_key_8939979151693996803.key) 21:12:52 [ssh-agent] Using credentials jenkins (jenkins-ssh) 21:12:52 The recommended git tool is: NONE 21:12:54 using credential jenkins-ssh 21:12:54 Wiping out workspace first. 21:12:54 Cloning the remote Git repository 21:12:54 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 21:12:54 > git init /w/workspace/transportpce-tox-verify-chromium # timeout=10 21:12:54 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 21:12:54 > git --version # timeout=10 21:12:54 > git --version # 'git version 2.34.1' 21:12:54 using GIT_SSH to set credentials jenkins-ssh 21:12:54 Verifying host key using known hosts file, will automatically accept unseen keys 21:12:54 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 21:12:58 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 21:12:58 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:12:58 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 21:12:58 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 21:12:58 using GIT_SSH to set credentials jenkins-ssh 21:12:58 Verifying host key using known hosts file, will automatically accept unseen keys 21:12:58 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/67/125967/1 # timeout=10 21:12:59 > git rev-parse 87ba7f3509f2f6e2bad4f4cefaf2ca56e2a99b94^{commit} # timeout=10 21:12:59 Checking out Revision 87ba7f3509f2f6e2bad4f4cefaf2ca56e2a99b94 (refs/changes/67/125967/1) 21:12:59 > git config core.sparsecheckout # timeout=10 21:12:59 > git checkout -f 87ba7f3509f2f6e2bad4f4cefaf2ca56e2a99b94 # timeout=10 21:12:59 Commit message: "Support for openconfig 2.0" 21:12:59 > git rev-parse FETCH_HEAD^{commit} # timeout=10 21:12:59 > git rev-list --no-walk 112310495285fd3451e8150c9a0ae990def27503 # timeout=10 21:12:59 > git remote # timeout=10 21:12:59 > git submodule init # timeout=10 21:12:59 > git submodule sync # timeout=10 21:12:59 > git config --get remote.origin.url # timeout=10 21:12:59 > git submodule init # timeout=10 21:12:59 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 21:12:59 ERROR: No submodules found. 21:13:03 provisioning config files... 21:13:03 copy managed file [npmrc] to file:/home/jenkins/.npmrc 21:13:03 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 21:13:03 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins11795944246828286839.sh 21:13:03 ---> python-tools-install.sh 21:13:03 Setup pyenv: 21:13:03 * system (set by /opt/pyenv/version) 21:13:03 * 3.8.20 (set by /opt/pyenv/version) 21:13:03 * 3.9.20 (set by /opt/pyenv/version) 21:13:03 3.10.15 21:13:03 3.11.10 21:13:07 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-vQiI 21:13:07 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 21:13:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:13:11 lf-activate-venv(): INFO: Installing additional packages: lftools 21:13:35 lf-activate-venv(): INFO: Adding /tmp/venv-vQiI/bin to PATH 21:13:35 Generating Requirements File 21:14:00 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. 21:14:00 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 21:14:01 Python 3.11.10 21:14:01 pip 26.2.1 from /tmp/venv-vQiI/lib/python3.11/site-packages/pip (python 3.11) 21:14:01 aiohappyeyeballs==2.7.1 21:14:01 aiohttp==3.14.3 21:14:01 aiosignal==1.4.0 21:14:01 appdirs==1.4.4 21:14:01 argcomplete==3.7.2 21:14:01 aspy.yaml==1.3.0 21:14:01 attrs==26.1.0 21:14:01 autopage==0.6.0 21:14:01 beautifulsoup4==4.15.0 21:14:01 boto3==1.43.92 21:14:01 botocore==1.43.92 21:14:01 bs4==0.0.2 21:14:01 certifi==2026.7.22 21:14:01 cffi==2.1.1 21:14:01 cfgv==3.5.0 21:14:01 chardet==7.6.0 21:14:01 charset-normalizer==3.5.1 21:14:01 click==8.5.0 21:14:01 cliff==4.16.0 21:14:01 cmd2==4.2.4 21:14:01 cryptography==3.3.2 21:14:01 debtcollector==3.1.0 21:14:01 decorator==5.3.1 21:14:01 defusedxml==0.7.1 21:14:01 Deprecated==1.3.1 21:14:01 distlib==0.4.3 21:14:01 dnspython==2.8.0 21:14:01 docker==7.2.0 21:14:01 dogpile.cache==1.5.0 21:14:01 durationpy==0.11 21:14:01 email-validator==2.3.0 21:14:01 filelock==3.32.6 21:14:01 frozenlist==1.8.0 21:14:01 future==1.0.0 21:14:01 gitdb==4.0.12 21:14:01 GitPython==3.1.62 21:14:01 httplib2==0.30.2 21:14:01 identify==2.6.19 21:14:01 idna==3.19 21:14:01 importlib-resources==1.5.0 21:14:01 iso8601==2.1.0 21:14:01 Jinja2==3.1.6 21:14:01 jmespath==1.1.0 21:14:01 jsonpatch==1.33 21:14:01 jsonpointer==3.1.1 21:14:01 jsonschema==4.26.0 21:14:01 jsonschema-specifications==2025.9.1 21:14:01 keystoneauth1==5.17.0 21:14:01 kubernetes==36.0.3 21:14:01 lftools==0.37.23 21:14:01 lxml==6.1.3 21:14:01 markdown-it-py==4.2.0 21:14:01 MarkupSafe==3.0.3 21:14:01 mdurl==0.1.2 21:14:01 msgpack==1.2.2 21:14:01 multi_key_dict==2.0.3 21:14:01 multidict==6.8.0 21:14:01 munch==4.0.0 21:14:01 netaddr==1.3.0 21:14:01 niet==1.4.2 21:14:01 nodeenv==1.10.0 21:14:01 oauth2client==4.1.3 21:14:01 oauthlib==3.3.1 21:14:01 openstacksdk==4.20.0 21:14:01 os-service-types==1.9.0 21:14:01 osc-lib==4.7.0 21:14:01 oslo.config==10.7.0 21:14:01 oslo.context==6.5.0 21:14:01 oslo.i18n==6.9.0 21:14:01 oslo.log==8.3.2 21:14:01 oslo.serialization==5.11.0 21:14:01 oslo.utils==10.2.0 21:14:01 packaging==26.3 21:14:01 pbr==7.0.3 21:14:01 platformdirs==4.11.8 21:14:01 prettytable==3.18.0 21:14:01 prompt_toolkit==3.0.53 21:14:01 propcache==0.5.2 21:14:01 psutil==7.2.2 21:14:01 pyasn1==0.6.4 21:14:01 pyasn1_modules==0.4.2 21:14:01 pycparser==3.0 21:14:01 pygerrit2==2.0.15 21:14:01 PyGithub==2.10.0 21:14:01 Pygments==2.21.0 21:14:01 PyJWT==2.13.0 21:14:01 PyNaCl==1.6.2 21:14:01 pyparsing==2.4.7 21:14:01 pyperclip==1.11.0 21:14:01 pyrsistent==0.20.0 21:14:01 python-dateutil==2.9.0.post0 21:14:01 python-discovery==1.6.0 21:14:01 python-heatclient==5.3.0 21:14:01 python-jenkins==1.8.3 21:14:01 python-keystoneclient==6.0.0 21:14:01 python-magnumclient==5.0.0 21:14:01 python-manilaclient==6.3.0 21:14:01 python-openstackclient==10.3.0 21:14:01 python-swiftclient==4.11.0 21:14:01 PyYAML==6.0.3 21:14:01 referencing==0.37.0 21:14:01 requests==2.34.2 21:14:01 requests-oauthlib==2.0.0 21:14:01 rfc3986==2.0.0 21:14:01 rich==15.0.0 21:14:01 rich-argparse==1.8.0 21:14:01 rpds-py==2026.6.3 21:14:01 rsa==4.9.1 21:14:01 ruamel.yaml==0.19.1 21:14:01 ruamel.yaml.clib==0.2.15 21:14:01 s3transfer==0.19.2 21:14:01 simplejson==4.1.2 21:14:01 six==1.17.0 21:14:01 smmap==5.0.3 21:14:01 soupsieve==2.9.2 21:14:01 stevedore==5.9.1 21:14:01 tabulate==0.10.0 21:14:01 toml==0.10.2 21:14:01 tomlkit==0.15.1 21:14:01 tqdm==4.70.0 21:14:01 typing_extensions==4.16.0 21:14:01 urllib3==1.26.20 21:14:01 virtualenv==21.7.9 21:14:01 wcwidth==0.8.3 21:14:01 websocket-client==1.9.2 21:14:01 wrapt==2.4.0 21:14:01 xdg==6.0.0 21:14:01 xmltodict==1.0.4 21:14:01 yarl==1.24.5 21:14:01 yq==4.1.2 21:14:01 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins11239464915499617557.sh 21:14:01 ---> uv-install.sh 21:14:01 Installing uv/uvx (latest) using shell installer 21:14:02 2026-09-10 21:14:02 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-XUh1mg.sh" [1] 21:14:02 downloading uv 0.12.13 x86_64-unknown-linux-gnu 21:14:03 installing to /home/jenkins/.local/bin 21:14:03 uv 21:14:03 uvx 21:14:03 everything's installed! 21:14:03 21:14:03 To add $HOME/.local/bin to your PATH, either restart your shell or run: 21:14:03 21:14:03 source $HOME/.local/bin/env (sh, bash, zsh) 21:14:03 source $HOME/.local/bin/env.fish (fish) 21:14:03 Adding install location to PATH 21:14:03 ---> Validating uv/uvx install 21:14:03 uvx 0.12.13 (x86_64-unknown-linux-gnu) 21:14:03 [EnvInject] - Injecting environment variables from a build step. 21:14:03 [EnvInject] - Injecting as environment variables the properties content 21:14:03 PYTHON=python3 21:14:03 21:14:03 [EnvInject] - Variables injected successfully. 21:14:03 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins12865867646240142340.sh 21:14:03 ---> tox-install.sh 21:14:03 + source /home/jenkins/lf-env.sh 21:14:03 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:14:03 ++ mktemp -d /tmp/venv-XXXX 21:14:03 + lf_venv=/tmp/venv-BP1l 21:14:03 + local venv_file=/tmp/.os_lf_venv 21:14:03 + local python=python3 21:14:03 + local options 21:14:03 + local set_path=true 21:14:03 + local install_args= 21:14:03 ++ 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 21:14:03 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:14:03 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:14:03 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 21:14:03 + true 21:14:03 + case $1 in 21:14:03 + venv_file=/tmp/.toxenv 21:14:03 + shift 2 21:14:03 + true 21:14:03 + case $1 in 21:14:03 + shift 21:14:03 + break 21:14:03 + case $python in 21:14:03 + local pkg_list= 21:14:03 + [[ -d /opt/pyenv ]] 21:14:03 + echo 'Setup pyenv:' 21:14:03 Setup pyenv: 21:14:03 + export PYENV_ROOT=/opt/pyenv 21:14:03 + PYENV_ROOT=/opt/pyenv 21:14:03 + 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 21:14:03 + 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 21:14:03 + pyenv versions 21:14:03 system 21:14:03 3.8.20 21:14:03 3.9.20 21:14:03 3.10.15 21:14:03 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:14:03 + command -v pyenv 21:14:03 ++ pyenv init - --no-rehash 21:14:03 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 21:14:03 for i in ${!paths[@]}; do 21:14:03 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 21:14:03 fi; done; 21:14:03 echo "${paths[*]}"'\'')" 21:14:03 export PATH="/opt/pyenv/shims:${PATH}" 21:14:03 export PYENV_SHELL=bash 21:14:03 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 21:14:03 pyenv() { 21:14:03 local command 21:14:03 command="${1:-}" 21:14:03 if [ "$#" -gt 0 ]; then 21:14:03 shift 21:14:03 fi 21:14:03 21:14:03 case "$command" in 21:14:03 rehash|shell) 21:14:03 eval "$(pyenv "sh-$command" "$@")" 21:14:03 ;; 21:14:03 *) 21:14:03 command pyenv "$command" "$@" 21:14:03 ;; 21:14:03 esac 21:14:03 }' 21:14:03 +++ bash --norc -ec 'IFS=:; paths=($PATH); 21:14:03 for i in ${!paths[@]}; do 21:14:03 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 21:14:03 fi; done; 21:14:03 echo "${paths[*]}"' 21:14:03 ++ 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 21:14:03 ++ 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 21:14:03 ++ 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 21:14:03 ++ export PYENV_SHELL=bash 21:14:03 ++ PYENV_SHELL=bash 21:14:03 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 21:14:03 +++ complete -F _pyenv pyenv 21:14:03 ++ lf-pyver python3 21:14:03 ++ local py_version_xy=python3 21:14:03 ++ local py_version_xyz= 21:14:03 ++ pyenv versions 21:14:03 ++ local command 21:14:03 ++ sed 's/^[ *]* //' 21:14:03 ++ awk '{ print $1 }' 21:14:03 ++ command=versions 21:14:03 ++ '[' 1 -gt 0 ']' 21:14:03 ++ shift 21:14:03 ++ case "$command" in 21:14:03 ++ command pyenv versions 21:14:03 ++ grep -E '^[0-9.]*[0-9]$' 21:14:03 ++ [[ ! -s /tmp/.pyenv_versions ]] 21:14:03 +++ grep '^3' /tmp/.pyenv_versions 21:14:03 +++ sort -V 21:14:03 +++ tail -n 1 21:14:03 ++ py_version_xyz=3.11.10 21:14:03 ++ [[ -z 3.11.10 ]] 21:14:03 ++ echo 3.11.10 21:14:03 ++ return 0 21:14:03 + pyenv local 3.11.10 21:14:03 + local command 21:14:03 + command=local 21:14:03 + '[' 2 -gt 0 ']' 21:14:03 + shift 21:14:03 + case "$command" in 21:14:03 + command pyenv local 3.11.10 21:14:03 + for arg in "$@" 21:14:03 + case $arg in 21:14:03 + pkg_list+='tox ' 21:14:03 + for arg in "$@" 21:14:03 + case $arg in 21:14:03 + pkg_list+='virtualenv ' 21:14:03 + for arg in "$@" 21:14:03 + case $arg in 21:14:03 + pkg_list+='urllib3~=1.26.15 ' 21:14:03 + [[ -f /tmp/.toxenv ]] 21:14:03 + [[ ! -f /tmp/.toxenv ]] 21:14:03 + [[ -n '' ]] 21:14:03 + python3 -m venv /tmp/venv-BP1l 21:14:07 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-BP1l' 21:14:07 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-BP1l 21:14:07 + echo /tmp/venv-BP1l 21:14:07 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 21:14:07 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 21:14:07 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 21:14:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:14:07 + local 'pip_opts=--upgrade --quiet' 21:14:07 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 21:14:07 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 21:14:07 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 21:14:07 + [[ -n '' ]] 21:14:07 + [[ -n '' ]] 21:14:07 + lf-venv-pip-install /tmp/venv-BP1l/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:14:07 + local venv_python=/tmp/venv-BP1l/bin/python3 21:14:07 + shift 21:14:07 + local upstream=https://pypi.org/simple 21:14:07 + /tmp/venv-BP1l/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 21:14:11 + return 0 21:14:11 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 21:14:11 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 21:14:11 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 21:14:11 + lf-venv-pip-install /tmp/venv-BP1l/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 21:14:11 + local venv_python=/tmp/venv-BP1l/bin/python3 21:14:11 + shift 21:14:11 + local upstream=https://pypi.org/simple 21:14:11 + /tmp/venv-BP1l/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 21:14:13 + return 0 21:14:13 + type python3 21:14:13 + true 21:14:13 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-BP1l/bin to PATH' 21:14:13 lf-activate-venv(): INFO: Adding /tmp/venv-BP1l/bin to PATH 21:14:13 + PATH=/tmp/venv-BP1l/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 21:14:13 + return 0 21:14:13 + python3 --version 21:14:13 Python 3.11.10 21:14:13 + python3 -m pip --version 21:14:13 pip 26.2.1 from /tmp/venv-BP1l/lib/python3.11/site-packages/pip (python 3.11) 21:14:13 + python3 -m pip freeze 21:14:14 cachetools==7.1.8 21:14:14 colorama==0.4.6 21:14:14 distlib==0.4.3 21:14:14 filelock==3.32.6 21:14:14 packaging==26.3 21:14:14 platformdirs==4.11.8 21:14:14 pluggy==1.6.0 21:14:14 pyproject-api==1.11.0 21:14:14 python-discovery==1.6.0 21:14:14 tomli_w==1.2.0 21:14:14 tox==4.61.4 21:14:14 typing_extensions==4.16.0 21:14:14 urllib3==1.26.20 21:14:14 virtualenv==21.7.9 21:14:14 [transportpce-tox-verify-chromium] $ /bin/sh -xe /tmp/jenkins6792062179818736306.sh 21:14:14 [EnvInject] - Injecting environment variables from a build step. 21:14:14 [EnvInject] - Injecting as environment variables the properties content 21:14:14 PARALLEL=True 21:14:14 21:14:14 [EnvInject] - Variables injected successfully. 21:14:14 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins2722482394417781039.sh 21:14:14 ---> tox-run.sh 21:14:14 + 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 21:14:14 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/tox 21:14:14 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/docs 21:14:14 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/tox 21:14:14 + cd /w/workspace/transportpce-tox-verify-chromium/. 21:14:14 + source /home/jenkins/lf-env.sh 21:14:14 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:14:14 ++ mktemp -d /tmp/venv-XXXX 21:14:14 + lf_venv=/tmp/venv-jkU1 21:14:14 + local venv_file=/tmp/.os_lf_venv 21:14:14 + local python=python3 21:14:14 + local options 21:14:14 + local set_path=true 21:14:14 + local install_args= 21:14:14 ++ 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 21:14:14 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:14:14 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:14:14 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 21:14:14 + true 21:14:14 + case $1 in 21:14:14 + venv_file=/tmp/.toxenv 21:14:14 + shift 2 21:14:14 + true 21:14:14 + case $1 in 21:14:14 + shift 21:14:14 + break 21:14:14 + case $python in 21:14:14 + local pkg_list= 21:14:14 + [[ -d /opt/pyenv ]] 21:14:14 + echo 'Setup pyenv:' 21:14:14 Setup pyenv: 21:14:14 + export PYENV_ROOT=/opt/pyenv 21:14:14 + PYENV_ROOT=/opt/pyenv 21:14:14 + 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 21:14:14 + 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 21:14:14 + pyenv versions 21:14:14 system 21:14:14 3.8.20 21:14:14 3.9.20 21:14:14 3.10.15 21:14:14 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:14:14 + command -v pyenv 21:14:14 ++ pyenv init - --no-rehash 21:14:14 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 21:14:14 for i in ${!paths[@]}; do 21:14:14 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 21:14:14 fi; done; 21:14:14 echo "${paths[*]}"'\'')" 21:14:14 export PATH="/opt/pyenv/shims:${PATH}" 21:14:14 export PYENV_SHELL=bash 21:14:14 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 21:14:14 pyenv() { 21:14:14 local command 21:14:14 command="${1:-}" 21:14:14 if [ "$#" -gt 0 ]; then 21:14:14 shift 21:14:14 fi 21:14:14 21:14:14 case "$command" in 21:14:14 rehash|shell) 21:14:14 eval "$(pyenv "sh-$command" "$@")" 21:14:14 ;; 21:14:14 *) 21:14:14 command pyenv "$command" "$@" 21:14:14 ;; 21:14:14 esac 21:14:14 }' 21:14:14 +++ bash --norc -ec 'IFS=:; paths=($PATH); 21:14:14 for i in ${!paths[@]}; do 21:14:14 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 21:14:14 fi; done; 21:14:14 echo "${paths[*]}"' 21:14:14 ++ 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 21:14:14 ++ 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 21:14:14 ++ 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 21:14:14 ++ export PYENV_SHELL=bash 21:14:14 ++ PYENV_SHELL=bash 21:14:14 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 21:14:14 +++ complete -F _pyenv pyenv 21:14:14 ++ lf-pyver python3 21:14:14 ++ local py_version_xy=python3 21:14:14 ++ local py_version_xyz= 21:14:14 ++ pyenv versions 21:14:14 ++ local command 21:14:14 ++ command=versions 21:14:14 ++ '[' 1 -gt 0 ']' 21:14:14 ++ shift 21:14:14 ++ case "$command" in 21:14:14 ++ command pyenv versions 21:14:14 ++ sed 's/^[ *]* //' 21:14:14 ++ awk '{ print $1 }' 21:14:14 ++ grep -E '^[0-9.]*[0-9]$' 21:14:14 ++ [[ ! -s /tmp/.pyenv_versions ]] 21:14:14 +++ grep '^3' /tmp/.pyenv_versions 21:14:14 +++ sort -V 21:14:14 +++ tail -n 1 21:14:14 ++ py_version_xyz=3.11.10 21:14:14 ++ [[ -z 3.11.10 ]] 21:14:14 ++ echo 3.11.10 21:14:14 ++ return 0 21:14:14 + pyenv local 3.11.10 21:14:14 + local command 21:14:14 + command=local 21:14:14 + '[' 2 -gt 0 ']' 21:14:14 + shift 21:14:14 + case "$command" in 21:14:14 + command pyenv local 3.11.10 21:14:14 + for arg in "$@" 21:14:14 + case $arg in 21:14:14 + pkg_list+='tox ' 21:14:14 + for arg in "$@" 21:14:14 + case $arg in 21:14:14 + pkg_list+='virtualenv ' 21:14:14 + for arg in "$@" 21:14:14 + case $arg in 21:14:14 + pkg_list+='urllib3~=1.26.15 ' 21:14:14 + [[ -f /tmp/.toxenv ]] 21:14:14 ++ cat /tmp/.toxenv 21:14:14 + lf_venv=/tmp/venv-BP1l 21:14:14 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-BP1l from' file:/tmp/.toxenv 21:14:14 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-BP1l from file:/tmp/.toxenv 21:14:14 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 21:14:14 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:14:14 + local 'pip_opts=--upgrade --quiet' 21:14:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 21:14:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 21:14:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 21:14:14 + [[ -n '' ]] 21:14:14 + [[ -n '' ]] 21:14:14 + lf-venv-pip-install /tmp/venv-BP1l/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:14:14 + local venv_python=/tmp/venv-BP1l/bin/python3 21:14:14 + shift 21:14:14 + local upstream=https://pypi.org/simple 21:14:14 + /tmp/venv-BP1l/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 21:14:15 + return 0 21:14:15 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 21:14:15 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 21:14:15 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 21:14:15 + lf-venv-pip-install /tmp/venv-BP1l/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 21:14:15 + local venv_python=/tmp/venv-BP1l/bin/python3 21:14:15 + shift 21:14:15 + local upstream=https://pypi.org/simple 21:14:15 + /tmp/venv-BP1l/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 21:14:16 + return 0 21:14:16 + type python3 21:14:16 + true 21:14:16 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-BP1l/bin to PATH' 21:14:16 lf-activate-venv(): INFO: Adding /tmp/venv-BP1l/bin to PATH 21:14:16 + PATH=/tmp/venv-BP1l/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 21:14:16 + return 0 21:14:16 + [[ -d /opt/pyenv ]] 21:14:16 + echo '---> Setting up pyenv' 21:14:16 ---> Setting up pyenv 21:14:16 + export PYENV_ROOT=/opt/pyenv 21:14:16 + PYENV_ROOT=/opt/pyenv 21:14:16 + export PATH=/opt/pyenv/bin:/tmp/venv-BP1l/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 21:14:16 + PATH=/opt/pyenv/bin:/tmp/venv-BP1l/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 21:14:16 ++ pwd 21:14:16 + PYTHONPATH=/w/workspace/transportpce-tox-verify-chromium 21:14:16 + export PYTHONPATH 21:14:16 + export TOX_TESTENV_PASSENV=PYTHONPATH 21:14:16 + TOX_TESTENV_PASSENV=PYTHONPATH 21:14:16 + tox --version 21:14:16 4.61.4 from /tmp/venv-BP1l/lib/python3.11/site-packages/tox/__init__.py 21:14:16 + PARALLEL=True 21:14:16 + TOX_OPTIONS_LIST= 21:14:16 + [[ -n '' ]] 21:14:16 + case ${PARALLEL,,} in 21:14:16 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 21:14:16 + tox --parallel auto --parallel-live 21:14:16 + tee -a /w/workspace/transportpce-tox-verify-chromium/archives/tox/tox.log 21:14:18 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 21:14:18 checkbashisms: freeze> python -m pip freeze --all 21:14:18 docs: install_deps> python -I -m pip install -r docs/requirements.txt 21:14:18 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:14:19 checkbashisms: pip==26.2.1,setuptools==84.0.0 21:14:19 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 21:14:19 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-chromium/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)' 21:14:19 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 21:14:20 checkbashisms: OK ✔ in 3.26 seconds 21:14:20 pre-commit: install_deps> python -I -m pip install pre-commit 21:14:22 pre-commit: freeze> python -m pip freeze --all 21:14:23 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.6,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.8,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.9 21:14:23 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 21:14:23 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-chromium/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)' 21:14:23 /usr/bin/cpan 21:14:23 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run --all-files --show-diff-on-failure 21:14:23 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 21:14:23 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 21:14:24 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 21:14:25 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 21:14:25 buildcontroller: freeze> python -m pip freeze --all 21:14:25 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:14:25 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh 21:14:25 + update-java-alternatives -l 21:14:25 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 21:14:25 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 21:14:25 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 21:14:25 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 21:14:25 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 21:14:25 update-alternatives: error: no alternatives for jaotc 21:14:25 update-alternatives: error: no alternatives for rmic 21:14:25 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 21:14:25 java -version 21:14:25 21 21:14:25 + JAVA_VER=21 21:14:25 + echo 21 21:14:25 + javac -version 21:14:25 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 21:14:26 + JAVAC_VER=21 21:14:26 + echo 21 21:14:26 + [ 21 -ge 21 ] 21:14:26 + [ 21 -ge 21 ] 21:14:26 + echo ok, java is 21 or newer 21:14:26 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 21:14:26 21 21:14:26 ok, java is 21 or newer 21:14:26 2026-09-10 21:14:26 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] 21:14:26 + sudo mkdir -p /opt 21:14:26 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 21:14:26 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 21:14:26 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 21:14:26 + mvn --version 21:14:26 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 21:14:26 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 21:14:26 Maven home: /opt/maven 21:14:26 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 21:14:26 Default locale: en, platform encoding: UTF-8 21:14:26 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 21:14:26 NOTE: Picked up JDK_JAVA_OPTIONS: 21:14:26 --add-opens=java.base/java.io=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.lang=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.net=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.util=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:14:26 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:14:26 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:14:26 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:14:26 -Xlog:disable 21:14:27 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 21:14:28 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 21:14:29 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 21:14:30 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 21:14:30 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 21:14:30 [INFO] Once installed this environment will be reused. 21:14:30 [INFO] This may take a few minutes... 21:14:33 docs-linkcheck: freeze> python -m pip freeze --all 21:14:33 docs: freeze> python -m pip freeze --all 21:14:33 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 21:14:33 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/linkcheck 21:14:34 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 21:14:34 docs: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/html 21:14:36 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:14:36 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.yangtools:binding-runtime-spi:jar -> duplicate declaration of version (?) @ line 149, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 21:14:36 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar -> duplicate declaration of version (?) @ line 123, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 21:14:36 @ 21:14:36 [ERROR] The build could not read 11 projects -> [Help 1] 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-api:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/api/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-common:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/common/pom.xml) has 1 error 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:test-common:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/test-common/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-renderer:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/renderer/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-networkmodel:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/networkmodel/pom.xml) has 1 error 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-olm:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/olm/pom.xml) has 1 error 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-pce:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/pce/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-servicehandler:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/servicehandler/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-tapi:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/tapi/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-nbinotifications:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/nbinotifications/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] The project org.opendaylight.transportpce:transportpce-dmaap-client:13.1.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-chromium/dmaap-client/pom.xml) has 2 errors 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 21:14:36 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 21:14:36 [ERROR] 21:14:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:14:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:14:36 [ERROR] 21:14:36 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:14:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 21:14:36 buildcontroller: exit 1 (10.65 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh pid=2759 21:14:36 buildcontroller: FAIL ✖ in 18.99 seconds 21:14:36 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 21:14:37 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 21:14:37 [INFO] Once installed this environment will be reused. 21:14:37 [INFO] This may take a few minutes... 21:14:37 docs: OK ✔ in 19.78 seconds 21:14:37 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:14:38 docs-linkcheck: OK ✔ in 21.67 seconds 21:14:38 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:14:39 pylint: freeze> python -m pip freeze --all 21:14:39 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.8,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 21:14:39 pylint: commands[0] /w/workspace/transportpce-tox-verify-chromium/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}$' '{}' + 21:14:42 [INFO] Installing environment for https://github.com/hhatto/autopep8. 21:14:42 [INFO] Once installed this environment will be reused. 21:14:42 [INFO] This may take a few minutes... 21:14:43 build_karaf_tests121: freeze> python -m pip freeze --all 21:14:44 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:14:44 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:14:44 build karaf in karaf121 with ./karaf121.env 21:14:44 NOTE: Picked up JDK_JAVA_OPTIONS: 21:14:44 --add-opens=java.base/java.io=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.lang=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.net=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.util=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:14:44 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:14:44 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:14:44 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:14:44 -Xlog:disable 21:14:45 [INFO] Installing environment for https://github.com/perltidy/perltidy. 21:14:45 [INFO] Once installed this environment will be reused. 21:14:45 [INFO] This may take a few minutes... 21:14:46 build_karaf_tests221: freeze> python -m pip freeze --all 21:14:47 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:14:47 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:14:47 build karaf in karaf221 with ./karaf221.env 21:14:47 NOTE: Picked up JDK_JAVA_OPTIONS: 21:14:47 --add-opens=java.base/java.io=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.lang=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.net=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.util=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:14:47 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:14:47 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:14:47 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:14:47 -Xlog:disable 21:14:52 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:14:52 [ERROR] -> [Help 1] 21:14:52 [ERROR] 21:14:52 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:14:52 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:14:52 [ERROR] 21:14:52 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:14:52 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:14:52 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:14:52 build_karaf_tests121: exit 127 (8.42 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3470 21:14:52 build_karaf_tests121: FAIL ✖ in 15.67 seconds 21:14:52 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:14:52 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:14:52 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:14:52 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:14:52 [ERROR] -> [Help 1] 21:14:52 [ERROR] 21:14:52 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:14:52 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:14:52 [ERROR] 21:14:52 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:14:52 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:14:52 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:14:52 build_karaf_tests221: exit 127 (5.89 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3549 21:14:53 build_karaf_tests221: FAIL ✖ in 14.13 seconds 21:14:53 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:14:56 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 21:14:56 [INFO] Once installed this environment will be reused. 21:14:56 [INFO] This may take a few minutes... 21:14:59 build_karaf_tests71: freeze> python -m pip freeze --all 21:14:59 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 21:14:59 [INFO] Once installed this environment will be reused. 21:14:59 [INFO] This may take a few minutes... 21:14:59 build_karaf_tests200: freeze> python -m pip freeze --all 21:14:59 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:14:59 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:14:59 build karaf in karaf71 with ./karaf71.env 21:15:00 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:15:00 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 21:15:00 build karaf in karafoc200 with ./karafoc200.env 21:15:00 NOTE: Picked up JDK_JAVA_OPTIONS: 21:15:00 --add-opens=java.base/java.io=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.lang=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.net=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.nio=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:15:00 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:15:00 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:15:00 -Xlog:disable 21:15:00 NOTE: Picked up JDK_JAVA_OPTIONS: 21:15:00 --add-opens=java.base/java.io=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.lang=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.net=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.nio=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:15:00 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:15:00 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:15:00 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:15:00 -Xlog:disable 21:15:02 21:15:02 ------------------------------------ 21:15:02 Your code has been rated at 10.00/10 21:15:02 21:15:05 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] -> [Help 1] 21:15:05 [ERROR] 21:15:05 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:15:05 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:15:05 [ERROR] 21:15:05 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:15:05 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:15:05 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:15:05 build_karaf_tests71: exit 127 (5.69 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3889 21:15:05 build_karaf_tests71: FAIL ✖ in 13.07 seconds 21:15:05 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:15:05 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.1.0-SNAPSHOT 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 21:15:05 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 21:15:05 [ERROR] -> [Help 1] 21:15:05 [ERROR] 21:15:05 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:15:05 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:15:05 [ERROR] 21:15:05 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:15:05 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:15:05 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:15:05 build_karaf_tests200: exit 127 (5.86 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3933 21:15:06 build_karaf_tests200: FAIL ✖ in 13.01 seconds 21:15:06 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:15:06 trim trailing whitespace.................................................Passed 21:15:06 fix end of files.........................................................Passed 21:15:06 check for added large files..............................................Passed 21:15:07 check for merge conflicts................................................pylint: OK ✔ in 30.78 seconds 21:15:07 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:15:07 Passed 21:15:07 check for case conflicts.................................................Passed 21:15:07 check json...............................................................Passed 21:15:07 mixed line ending........................................................Passed 21:15:07 Tabs remover.............................................................Passed 21:15:07 autopep8.................................................................Passed 21:15:10 perltidy.................................................................Passed 21:15:11 ShellCheck v0.11.0.......................................................sims: freeze> python -m pip freeze --all 21:15:14 buildlighty: freeze> python -m pip freeze --all 21:15:14 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:15:14 sims: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./install_lightynode.sh 21:15:14 Using lighynode version 22.1.0.7 21:15:14 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 21:15:14 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:15:14 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh 21:15:14 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 21:15:16 Passed 21:15:16 prettier.................................................................Passed 21:15:18 yamllint.................................................................Passed 21:15:18 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run gitlint-ci --hook-stage manual 21:15:18 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 21:15:18 [INFO] Once installed this environment will be reused. 21:15:18 [INFO] This may take a few minutes... 21:15:26 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:13.1.0-SNAPSHOT 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT (compile) 21:15:26 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:15:26 [ERROR] -> [Help 1] 21:15:26 [ERROR] 21:15:26 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:15:26 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:15:26 [ERROR] 21:15:26 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:15:26 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:15:26 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 21:15:26 sims: OK ✔ in 13.42 seconds 21:15:26 buildlighty: exit 9 (12.35 seconds) /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh pid=4298 21:15:28 gitlint..................................................................Passed 21:15:58 buildlighty: FAIL ✖ in 21.11 seconds 21:15:58 pre-commit: OK ✔ in 1 minute 8.52 seconds 21:15:58 testsPCE: freeze> python -m pip freeze --all 21:15:58 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.65.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,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 21:15:58 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce 21:15:58 pytest -q transportpce_tests/pce/test01_pce.py 21:17:59 EEEEEEEEEEEEEEEEEEEE [100%] 21:18:03 ==================================== ERRORS ==================================== 21:18:03 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 21:18:03 21:18:03 cls = 21:18:03 21:18:03 @classmethod 21:18:03 def setUpClass(cls): 21:18:03 # pylint: disable=bare-except 21:18:03 sample_files_parsed = False 21:18:03 time.sleep(20) 21:18:03 try: 21:18:03 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:03 "..", "..", "sample_configs", "honeynode-topo.json") 21:18:03 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 21:18:03 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 21:18:03 21:18:03 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:03 "..", "..", "sample_configs", "NW-simple-topology.json") 21:18:03 21:18:03 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 21:18:03 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 21:18:03 21:18:03 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:03 "..", "..", "sample_configs", "NW-for-test-5-4.json") 21:18:03 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 21:18:03 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 21:18:03 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:03 "..", "..", "sample_configs", "pce_portmapping_121.json") 21:18:03 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 21:18:03 cls.port_mapping_data = port_mapping.read() 21:18:03 sample_files_parsed = True 21:18:03 except PermissionError as err: 21:18:03 print("Permission Error when trying to read sample files\n", err) 21:18:03 sys.exit(2) 21:18:03 except FileNotFoundError as err: 21:18:03 print("File Not found Error when trying to read sample files\n", err) 21:18:03 sys.exit(2) 21:18:03 except: 21:18:03 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 21:18:03 sys.exit(2) 21:18:03 finally: 21:18:03 if sample_files_parsed: 21:18:03 print("sample files content loaded") 21:18:03 21:18:03 > cls.processes = test_utils.start_tpce() 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 21:18:03 transportpce_tests/pce/test01_pce.py:93: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 def start_tpce(): 21:18:03 if 'NO_ODL_STARTUP' in os.environ: 21:18:03 print('No OpenDaylight instance to start!') 21:18:03 return [] 21:18:03 print('starting OpenDaylight...') 21:18:03 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:18:03 process = start_lighty() 21:18:03 else: 21:18:03 process = start_karaf() 21:18:03 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:18:03 print('OpenDaylight started !') 21:18:03 else: 21:18:03 print('OpenDaylight failed to start !') 21:18:03 shutdown_process(process) 21:18:03 for pid in process_list: 21:18:03 shutdown_process(pid) 21:18:03 > sys.exit(1) 21:18:03 E SystemExit: 1 21:18:03 21:18:03 transportpce_tests/common/test_utils.py:233: SystemExit 21:18:03 ---------------------------- Captured stdout setup ----------------------------- 21:18:03 sample files content loaded 21:18:03 starting OpenDaylight... 21:18:03 starting KARAF (karaf) TransportPCE build... 21:18:03 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:18:03 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dbb2e0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcb4c0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8d8bf60> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dbb2e0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cdb261120> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dbb2e0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dc9d00> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcba60> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8d8bf60> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcbb00> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcb380> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8d8bf60> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcafc0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dc9da0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcbd80> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcbb00> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8d8be20> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8d8bce0> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 21:18:03 21:18:03 cls = 21:18:03 func = . at 0x7f2cd8dcbc40> 21:18:03 when = 'setup' 21:18:03 reraise = (, ) 21:18:03 21:18:03 @classmethod 21:18:03 def from_call( 21:18:03 cls, 21:18:03 func: Callable[[], TResult], 21:18:03 when: Literal["collect", "setup", "call", "teardown"], 21:18:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:03 ) -> CallInfo[TResult]: 21:18:03 """Call func, wrapping the result in a CallInfo. 21:18:03 21:18:03 :param func: 21:18:03 The function to call. Called without arguments. 21:18:03 :type func: Callable[[], _pytest.runner.TResult] 21:18:03 :param when: 21:18:03 The phase in which the function is called. 21:18:03 :param reraise: 21:18:03 Exception or exceptions that shall propagate if raised by the 21:18:03 function, instead of being wrapped in the CallInfo. 21:18:03 """ 21:18:03 excinfo = None 21:18:03 instant = timing.Instant() 21:18:03 try: 21:18:03 > result: TResult | None = func() 21:18:03 ^^^^^^ 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:03 lambda: runtest_hook(item=item, **kwds), 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:18:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:18:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:18:03 yield 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:18:03 return (yield) 21:18:03 ^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:03 item.session._setupstate.setup(item) 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:03 col.setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:18:03 super().setup() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:18:03 self._request._fillfixtures() 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:18:03 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:18:03 fixturedef = self._get_active_fixturedef(argname) 21:18:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:18:03 fixturedef.execute(request=subrequest) 21:18:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:03 21:18:03 self = 21:18:03 request = > 21:18:03 21:18:03 def execute(self, request: SubRequest) -> FixtureValue: 21:18:03 """Return the value of this fixture, executing it if not cached.""" 21:18:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:03 # This needs to be done before checking if we have a cached value, since 21:18:03 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:03 # parametrization, they finalize themselves and fixtures depending on it 21:18:03 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:03 # See #4871 21:18:03 requested_fixtures_that_should_finalize_us = [] 21:18:03 for argname in self.argnames: 21:18:03 fixturedef = request._get_active_fixturedef(argname) 21:18:03 # Saves requested fixtures in a list so we later can add our finalizer 21:18:03 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:03 # down first. This is generally handled by SetupState, but still currently 21:18:03 # needed when this fixture is not parametrized but depends on a parametrized 21:18:03 # fixture. 21:18:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:03 21:18:03 # Check for (and return) cached value/exception. 21:18:03 if self.cached_result is not None: 21:18:03 request_cache_key = self.cache_key(request) 21:18:03 cache_key = self.cached_result[1] 21:18:03 try: 21:18:03 # Attempt to make a normal == check: this might fail for objects 21:18:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:03 cache_hit = bool(request_cache_key == cache_key) 21:18:03 except (ValueError, RuntimeError): 21:18:03 # If the comparison raises, use 'is' as fallback. 21:18:03 cache_hit = request_cache_key is cache_key 21:18:03 21:18:03 if cache_hit: 21:18:03 if self.cached_result[2] is not None: 21:18:03 exc, exc_tb = self.cached_result[2] 21:18:03 raise exc.with_traceback(exc_tb) 21:18:03 else: 21:18:03 return self.cached_result[0] 21:18:03 # We have a previous but differently parametrized fixture instance 21:18:03 # so we need to tear it down before creating a new one. 21:18:03 self.finish(request) 21:18:03 assert self.cached_result is None 21:18:03 21:18:03 # Add finalizer to requested fixtures we saved previously. 21:18:03 # We make sure to do this after checking for cached value to avoid 21:18:03 # adding our finalizer multiple times. (#12135) 21:18:03 finalizer = functools.partial(self.finish, request=request) 21:18:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:03 parent_fixture.addfinalizer(finalizer) 21:18:03 21:18:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:03 # which is executed last. 21:18:03 > assert not self._finalizers 21:18:03 ^^^^^^^^^^^^^^^^^^^^ 21:18:03 E AssertionError 21:18:03 21:18:03 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:18:03 =========================== short test summary info ============================ 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 21:18:03 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 21:18:03 20 errors in 124.49s (0:02:04) 21:18:03 testsPCE: exit 1 (124.87 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce pid=4663 21:18:03 testsPCE: FAIL ✖ in 2 minutes 56.39 seconds 21:18:03 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:18:03 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:18:10 tests121: freeze> python -m pip freeze --all 21:18:10 tests_tapi: freeze> python -m pip freeze --all 21:18:10 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:18:10 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi 21:18:10 using environment variables from ./karaf221.env 21:18:10 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 21:18:10 tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:18:10 tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 21:18:10 using environment variables from ./karaf121.env 21:18:10 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 21:19:50 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:19:55 ==================================== ERRORS ==================================== 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 21:19:55 21:19:55 cls = 21:19:55 21:19:55 @classmethod 21:19:55 def setUpClass(cls): 21:19:55 > cls.processes = test_utils.start_tpce() 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 21:19:55 transportpce_tests/1.2.1/test01_portmapping.py:33: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 def start_tpce(): 21:19:55 if 'NO_ODL_STARTUP' in os.environ: 21:19:55 print('No OpenDaylight instance to start!') 21:19:55 return [] 21:19:55 print('starting OpenDaylight...') 21:19:55 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:19:55 process = start_lighty() 21:19:55 else: 21:19:55 process = start_karaf() 21:19:55 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:19:55 print('OpenDaylight started !') 21:19:55 else: 21:19:55 print('OpenDaylight failed to start !') 21:19:55 shutdown_process(process) 21:19:55 for pid in process_list: 21:19:55 shutdown_process(pid) 21:19:55 > sys.exit(1) 21:19:55 E SystemExit: 1 21:19:55 21:19:55 transportpce_tests/common/test_utils.py:233: SystemExit 21:19:55 ---------------------------- Captured stdout setup ----------------------------- 21:19:55 starting OpenDaylight... 21:19:55 starting KARAF (karaf121) TransportPCE build... 21:19:55 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:19:55 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005760> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156037560> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa15918b740> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa1577d3560> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa1560053a0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005580> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156037600> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa1560368e0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156036de0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156037600> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156036f20> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005580> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156036de0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156036f20> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005800> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005bc0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005da0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156036840> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa155c09d00> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 21:19:55 21:19:55 cls = 21:19:55 func = . at 0x7fa156005bc0> 21:19:55 when = 'setup' 21:19:55 reraise = (, ) 21:19:55 21:19:55 @classmethod 21:19:55 def from_call( 21:19:55 cls, 21:19:55 func: Callable[[], TResult], 21:19:55 when: Literal["collect", "setup", "call", "teardown"], 21:19:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:19:55 ) -> CallInfo[TResult]: 21:19:55 """Call func, wrapping the result in a CallInfo. 21:19:55 21:19:55 :param func: 21:19:55 The function to call. Called without arguments. 21:19:55 :type func: Callable[[], _pytest.runner.TResult] 21:19:55 :param when: 21:19:55 The phase in which the function is called. 21:19:55 :param reraise: 21:19:55 Exception or exceptions that shall propagate if raised by the 21:19:55 function, instead of being wrapped in the CallInfo. 21:19:55 """ 21:19:55 excinfo = None 21:19:55 instant = timing.Instant() 21:19:55 try: 21:19:55 > result: TResult | None = func() 21:19:55 ^^^^^^ 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:19:55 lambda: runtest_hook(item=item, **kwds), 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:19:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:19:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:19:55 yield 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:19:55 return (yield) 21:19:55 ^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:19:55 item.session._setupstate.setup(item) 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:19:55 col.setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:19:55 super().setup() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:19:55 self._request._fillfixtures() 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:19:55 item.funcargs[argname] = self.getfixturevalue(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:19:55 fixturedef = self._get_active_fixturedef(argname) 21:19:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:19:55 fixturedef.execute(request=subrequest) 21:19:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:19:55 21:19:55 self = 21:19:55 request = > 21:19:55 21:19:55 def execute(self, request: SubRequest) -> FixtureValue: 21:19:55 """Return the value of this fixture, executing it if not cached.""" 21:19:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:19:55 # This needs to be done before checking if we have a cached value, since 21:19:55 # if a dependent fixture has their cache invalidated, e.g. due to 21:19:55 # parametrization, they finalize themselves and fixtures depending on it 21:19:55 # (which will likely include this fixture) setting `self.cached_result = None`. 21:19:55 # See #4871 21:19:55 requested_fixtures_that_should_finalize_us = [] 21:19:55 for argname in self.argnames: 21:19:55 fixturedef = request._get_active_fixturedef(argname) 21:19:55 # Saves requested fixtures in a list so we later can add our finalizer 21:19:55 # to them, ensuring that if a requested fixture gets torn down we get torn 21:19:55 # down first. This is generally handled by SetupState, but still currently 21:19:55 # needed when this fixture is not parametrized but depends on a parametrized 21:19:55 # fixture. 21:19:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:19:55 21:19:55 # Check for (and return) cached value/exception. 21:19:55 if self.cached_result is not None: 21:19:55 request_cache_key = self.cache_key(request) 21:19:55 cache_key = self.cached_result[1] 21:19:55 try: 21:19:55 # Attempt to make a normal == check: this might fail for objects 21:19:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:19:55 cache_hit = bool(request_cache_key == cache_key) 21:19:55 except (ValueError, RuntimeError): 21:19:55 # If the comparison raises, use 'is' as fallback. 21:19:55 cache_hit = request_cache_key is cache_key 21:19:55 21:19:55 if cache_hit: 21:19:55 if self.cached_result[2] is not None: 21:19:55 exc, exc_tb = self.cached_result[2] 21:19:55 raise exc.with_traceback(exc_tb) 21:19:55 else: 21:19:55 return self.cached_result[0] 21:19:55 # We have a previous but differently parametrized fixture instance 21:19:55 # so we need to tear it down before creating a new one. 21:19:55 self.finish(request) 21:19:55 assert self.cached_result is None 21:19:55 21:19:55 # Add finalizer to requested fixtures we saved previously. 21:19:55 # We make sure to do this after checking for cached value to avoid 21:19:55 # adding our finalizer multiple times. (#12135) 21:19:55 finalizer = functools.partial(self.finish, request=request) 21:19:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:19:55 parent_fixture.addfinalizer(finalizer) 21:19:55 21:19:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:19:55 # which is executed last. 21:19:55 > assert not self._finalizers 21:19:55 ^^^^^^^^^^^^^^^^^^^^ 21:19:55 E AssertionError 21:19:55 21:19:55 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:19:55 =========================== short test summary info ============================ 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 21:19:55 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 21:19:55 21 errors in 104.73s (0:01:44) 21:19:55 Etests121: exit 1 (105.04 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 pid=4959 21:19:55 EEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:20:00 ==================================== ERRORS ==================================== 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 21:20:00 21:20:00 cls = 21:20:00 21:20:00 @classmethod 21:20:00 def setUpClass(cls): 21:20:00 cls.init_failed = False 21:20:00 os.environ['JAVA_MIN_MEM'] = '1024M' 21:20:00 os.environ['JAVA_MAX_MEM'] = '4096M' 21:20:00 > cls.processes = test_utils.start_tpce() 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 21:20:00 transportpce_tests/tapi/test01_abstracted_topology.py:148: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 def start_tpce(): 21:20:00 if 'NO_ODL_STARTUP' in os.environ: 21:20:00 print('No OpenDaylight instance to start!') 21:20:00 return [] 21:20:00 print('starting OpenDaylight...') 21:20:00 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:20:00 process = start_lighty() 21:20:00 else: 21:20:00 process = start_karaf() 21:20:00 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:20:00 print('OpenDaylight started !') 21:20:00 else: 21:20:00 print('OpenDaylight failed to start !') 21:20:00 shutdown_process(process) 21:20:00 for pid in process_list: 21:20:00 shutdown_process(pid) 21:20:00 > sys.exit(1) 21:20:00 E SystemExit: 1 21:20:00 21:20:00 transportpce_tests/common/test_utils.py:233: SystemExit 21:20:00 ---------------------------- Captured stdout setup ----------------------------- 21:20:00 starting OpenDaylight... 21:20:00 starting KARAF (karaf221) TransportPCE build... 21:20:00 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056797dbc0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c74c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056913b380> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a073740> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c7560> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c7880> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056797dbc0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056797dbc0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6e80> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6660> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6d40> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6660> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679a80> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056797ce00> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679c60> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056797ce00> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679f80> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056a0251c0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679260> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05676793a0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679120> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056767a480> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567678900> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056767aa20> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567678720> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567678ea0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679a80> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f0567679260> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056767a020> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05676794e0> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f05679c6700> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 21:20:00 21:20:00 cls = 21:20:00 func = . at 0x7f056767b560> 21:20:00 when = 'setup' 21:20:00 reraise = (, ) 21:20:00 21:20:00 @classmethod 21:20:00 def from_call( 21:20:00 cls, 21:20:00 func: Callable[[], TResult], 21:20:00 when: Literal["collect", "setup", "call", "teardown"], 21:20:00 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:20:00 ) -> CallInfo[TResult]: 21:20:00 """Call func, wrapping the result in a CallInfo. 21:20:00 21:20:00 :param func: 21:20:00 The function to call. Called without arguments. 21:20:00 :type func: Callable[[], _pytest.runner.TResult] 21:20:00 :param when: 21:20:00 The phase in which the function is called. 21:20:00 :param reraise: 21:20:00 Exception or exceptions that shall propagate if raised by the 21:20:00 function, instead of being wrapped in the CallInfo. 21:20:00 """ 21:20:00 excinfo = None 21:20:00 instant = timing.Instant() 21:20:00 try: 21:20:00 > result: TResult | None = func() 21:20:00 ^^^^^^ 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:20:00 lambda: runtest_hook(item=item, **kwds), 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:20:00 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:20:00 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:20:00 yield 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:20:00 return (yield) 21:20:00 ^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:20:00 item.session._setupstate.setup(item) 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:20:00 col.setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:20:00 super().setup() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:20:00 self._request._fillfixtures() 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:20:00 item.funcargs[argname] = self.getfixturevalue(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:20:00 fixturedef = self._get_active_fixturedef(argname) 21:20:00 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:20:00 fixturedef.execute(request=subrequest) 21:20:00 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:20:00 21:20:00 self = 21:20:00 request = > 21:20:00 21:20:00 def execute(self, request: SubRequest) -> FixtureValue: 21:20:00 """Return the value of this fixture, executing it if not cached.""" 21:20:00 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:20:00 # This needs to be done before checking if we have a cached value, since 21:20:00 # if a dependent fixture has their cache invalidated, e.g. due to 21:20:00 # parametrization, they finalize themselves and fixtures depending on it 21:20:00 # (which will likely include this fixture) setting `self.cached_result = None`. 21:20:00 # See #4871 21:20:00 requested_fixtures_that_should_finalize_us = [] 21:20:00 for argname in self.argnames: 21:20:00 fixturedef = request._get_active_fixturedef(argname) 21:20:00 # Saves requested fixtures in a list so we later can add our finalizer 21:20:00 # to them, ensuring that if a requested fixture gets torn down we get torn 21:20:00 # down first. This is generally handled by SetupState, but still currently 21:20:00 # needed when this fixture is not parametrized but depends on a parametrized 21:20:00 # fixture. 21:20:00 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:20:00 21:20:00 # Check for (and return) cached value/exception. 21:20:00 if self.cached_result is not None: 21:20:00 request_cache_key = self.cache_key(request) 21:20:00 cache_key = self.cached_result[1] 21:20:00 try: 21:20:00 # Attempt to make a normal == check: this might fail for objects 21:20:00 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:20:00 cache_hit = bool(request_cache_key == cache_key) 21:20:00 except (ValueError, RuntimeError): 21:20:00 # If the comparison raises, use 'is' as fallback. 21:20:00 cache_hit = request_cache_key is cache_key 21:20:00 21:20:00 if cache_hit: 21:20:00 if self.cached_result[2] is not None: 21:20:00 exc, exc_tb = self.cached_result[2] 21:20:00 raise exc.with_traceback(exc_tb) 21:20:00 else: 21:20:00 return self.cached_result[0] 21:20:00 # We have a previous but differently parametrized fixture instance 21:20:00 # so we need to tear it down before creating a new one. 21:20:00 self.finish(request) 21:20:00 assert self.cached_result is None 21:20:00 21:20:00 # Add finalizer to requested fixtures we saved previously. 21:20:00 # We make sure to do this after checking for cached value to avoid 21:20:00 # adding our finalizer multiple times. (#12135) 21:20:00 finalizer = functools.partial(self.finish, request=request) 21:20:00 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:20:00 parent_fixture.addfinalizer(finalizer) 21:20:00 21:20:00 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:20:00 # which is executed last. 21:20:00 > assert not self._finalizers 21:20:00 ^^^^^^^^^^^^^^^^^^^^ 21:20:00 E AssertionError 21:20:00 21:20:00 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:20:00 =========================== short test summary info ============================ 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 21:20:00 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 21:20:00 51 errors in 110.06s (0:01:50) 21:20:00 tests121: FAIL ✖ in 1 minute 52.07 seconds 21:20:00 tests_tapi: exit 1 (110.38 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi pid=4948 21:20:01 tests_tapi: FAIL ✖ in 1 minute 57.37 seconds 21:20:01 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:20:01 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:20:08 tests221: freeze> python -m pip freeze --all 21:20:08 tests200: freeze> python -m pip freeze --all 21:20:08 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:20:08 tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 21:20:08 using environment variables from ./karaf221.env 21:20:08 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 21:20:09 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:20:09 tests200: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc200 21:20:09 using environment variables from ./karafoc200.env 21:20:09 pytest -q transportpce_tests/oc200/test01_portmapping.py 21:21:49 EEEEEEEEEEEEEEEEEEE [100%] 21:21:51 ==================================== ERRORS ==================================== 21:21:51 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 21:21:51 21:21:51 cls = 21:21:51 21:21:51 @classmethod 21:21:51 def setUpClass(cls): 21:21:51 > cls.processes = test_utils.start_tpce() 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 21:21:51 transportpce_tests/oc200/test01_portmapping.py:29: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 def start_tpce(): 21:21:51 if 'NO_ODL_STARTUP' in os.environ: 21:21:51 print('No OpenDaylight instance to start!') 21:21:51 return [] 21:21:51 print('starting OpenDaylight...') 21:21:51 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:21:51 process = start_lighty() 21:21:51 else: 21:21:51 process = start_karaf() 21:21:51 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:21:51 print('OpenDaylight started !') 21:21:51 else: 21:21:51 print('OpenDaylight failed to start !') 21:21:51 shutdown_process(process) 21:21:51 for pid in process_list: 21:21:51 shutdown_process(pid) 21:21:51 > sys.exit(1) 21:21:51 E SystemExit: 1 21:21:51 21:21:51 transportpce_tests/common/test_utils.py:233: SystemExit 21:21:51 ---------------------------- Captured stdout setup ----------------------------- 21:21:51 starting OpenDaylight... 21:21:51 starting KARAF (karafoc200) TransportPCE build... 21:21:51 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c07969300> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c07983560> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c07953420> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c0a0744a0> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c07981b20> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c09127240> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c07969440> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c07981760> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 21:21:51 21:21:51 cls = 21:21:51 func = . at 0x7f0c09127240> 21:21:51 when = 'setup' 21:21:51 reraise = (, ) 21:21:51 21:21:51 @classmethod 21:21:51 def from_call( 21:21:51 cls, 21:21:51 func: Callable[[], TResult], 21:21:51 when: Literal["collect", "setup", "call", "teardown"], 21:21:51 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:51 ) -> CallInfo[TResult]: 21:21:51 """Call func, wrapping the result in a CallInfo. 21:21:51 21:21:51 :param func: 21:21:51 The function to call. Called without arguments. 21:21:51 :type func: Callable[[], _pytest.runner.TResult] 21:21:51 :param when: 21:21:51 The phase in which the function is called. 21:21:51 :param reraise: 21:21:51 Exception or exceptions that shall propagate if raised by the 21:21:51 function, instead of being wrapped in the CallInfo. 21:21:51 """ 21:21:51 excinfo = None 21:21:51 instant = timing.Instant() 21:21:51 try: 21:21:51 > result: TResult | None = func() 21:21:51 ^^^^^^ 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:51 lambda: runtest_hook(item=item, **kwds), 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:51 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:51 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:51 yield 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:51 return (yield) 21:21:51 ^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:51 item.session._setupstate.setup(item) 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:51 col.setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:51 super().setup() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:51 self._request._fillfixtures() 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:51 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:51 fixturedef = self._get_active_fixturedef(argname) 21:21:51 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:51 fixturedef.execute(request=subrequest) 21:21:51 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:51 21:21:51 self = 21:21:51 request = > 21:21:51 21:21:51 def execute(self, request: SubRequest) -> FixtureValue: 21:21:51 """Return the value of this fixture, executing it if not cached.""" 21:21:51 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:51 # This needs to be done before checking if we have a cached value, since 21:21:51 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:51 # parametrization, they finalize themselves and fixtures depending on it 21:21:51 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:51 # See #4871 21:21:51 requested_fixtures_that_should_finalize_us = [] 21:21:51 for argname in self.argnames: 21:21:51 fixturedef = request._get_active_fixturedef(argname) 21:21:51 # Saves requested fixtures in a list so we later can add our finalizer 21:21:51 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:51 # down first. This is generally handled by SetupState, but still currently 21:21:51 # needed when this fixture is not parametrized but depends on a parametrized 21:21:51 # fixture. 21:21:51 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:51 21:21:51 # Check for (and return) cached value/exception. 21:21:51 if self.cached_result is not None: 21:21:51 request_cache_key = self.cache_key(request) 21:21:51 cache_key = self.cached_result[1] 21:21:51 try: 21:21:51 # Attempt to make a normal == check: this might fail for objects 21:21:51 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:51 cache_hit = bool(request_cache_key == cache_key) 21:21:51 except (ValueError, RuntimeError): 21:21:51 # If the comparison raises, use 'is' as fallback. 21:21:51 cache_hit = request_cache_key is cache_key 21:21:51 21:21:51 if cache_hit: 21:21:51 if self.cached_result[2] is not None: 21:21:51 exc, exc_tb = self.cached_result[2] 21:21:51 raise exc.with_traceback(exc_tb) 21:21:51 else: 21:21:51 return self.cached_result[0] 21:21:51 # We have a previous but differently parametrized fixture instance 21:21:51 # so we need to tear it down before creating a new one. 21:21:51 self.finish(request) 21:21:51 assert self.cached_result is None 21:21:51 21:21:51 # Add finalizer to requested fixtures we saved previously. 21:21:51 # We make sure to do this after checking for cached value to avoid 21:21:51 # adding our finalizer multiple times. (#12135) 21:21:51 finalizer = functools.partial(self.finish, request=request) 21:21:51 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:51 parent_fixture.addfinalizer(finalizer) 21:21:51 21:21:51 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:51 # which is executed last. 21:21:51 > assert not self._finalizers 21:21:51 ^^^^^^^^^^^^^^^^^^^^ 21:21:51 E AssertionError 21:21:51 21:21:51 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:51 =========================== short test summary info ============================ 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 21:21:51 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 21:21:51 10 errors in 102.08s (0:01:42) 21:21:51 Etests200: exit 1 (102.38 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc200 pid=5153 21:21:51 Etests200: FAIL ✖ in 1 minute 50.71 seconds 21:21:51 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:21:51 EEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:21:56 ==================================== ERRORS ==================================== 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 21:21:56 21:21:56 cls = 21:21:56 21:21:56 @classmethod 21:21:56 def setUpClass(cls): 21:21:56 > cls.processes = test_utils.start_tpce() 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 21:21:56 transportpce_tests/2.2.1/test01_portmapping.py:33: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 def start_tpce(): 21:21:56 if 'NO_ODL_STARTUP' in os.environ: 21:21:56 print('No OpenDaylight instance to start!') 21:21:56 return [] 21:21:56 print('starting OpenDaylight...') 21:21:56 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:21:56 process = start_lighty() 21:21:56 else: 21:21:56 process = start_karaf() 21:21:56 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:21:56 print('OpenDaylight started !') 21:21:56 else: 21:21:56 print('OpenDaylight failed to start !') 21:21:56 shutdown_process(process) 21:21:56 for pid in process_list: 21:21:56 shutdown_process(pid) 21:21:56 > sys.exit(1) 21:21:56 E SystemExit: 1 21:21:56 21:21:56 transportpce_tests/common/test_utils.py:233: SystemExit 21:21:56 ---------------------------- Captured stdout setup ----------------------------- 21:21:56 starting OpenDaylight... 21:21:56 starting KARAF (karaf221) TransportPCE build... 21:21:56 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:21:56 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be3560> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c27ec0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f26243aea20> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f26253004a0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c82ca0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c27ec0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f26243aea20> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c80cc0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be36a0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c27ec0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c80360> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be36a0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c839c0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c83880> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2020> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2020> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c83b00> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c80b80> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c83c40> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c83880> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c80360> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c831a0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c83100> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c825c0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c82ca0> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622c83740> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 21:21:56 21:21:56 cls = 21:21:56 func = . at 0x7f2622be2340> 21:21:56 when = 'setup' 21:21:56 reraise = (, ) 21:21:56 21:21:56 @classmethod 21:21:56 def from_call( 21:21:56 cls, 21:21:56 func: Callable[[], TResult], 21:21:56 when: Literal["collect", "setup", "call", "teardown"], 21:21:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:56 ) -> CallInfo[TResult]: 21:21:56 """Call func, wrapping the result in a CallInfo. 21:21:56 21:21:56 :param func: 21:21:56 The function to call. Called without arguments. 21:21:56 :type func: Callable[[], _pytest.runner.TResult] 21:21:56 :param when: 21:21:56 The phase in which the function is called. 21:21:56 :param reraise: 21:21:56 Exception or exceptions that shall propagate if raised by the 21:21:56 function, instead of being wrapped in the CallInfo. 21:21:56 """ 21:21:56 excinfo = None 21:21:56 instant = timing.Instant() 21:21:56 try: 21:21:56 > result: TResult | None = func() 21:21:56 ^^^^^^ 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:56 lambda: runtest_hook(item=item, **kwds), 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:21:56 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:21:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:21:56 yield 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:21:56 return (yield) 21:21:56 ^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:56 item.session._setupstate.setup(item) 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:56 col.setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:21:56 super().setup() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:21:56 self._request._fillfixtures() 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:21:56 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:21:56 fixturedef = self._get_active_fixturedef(argname) 21:21:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:21:56 fixturedef.execute(request=subrequest) 21:21:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:56 21:21:56 self = 21:21:56 request = > 21:21:56 21:21:56 def execute(self, request: SubRequest) -> FixtureValue: 21:21:56 """Return the value of this fixture, executing it if not cached.""" 21:21:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:56 # This needs to be done before checking if we have a cached value, since 21:21:56 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:56 # parametrization, they finalize themselves and fixtures depending on it 21:21:56 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:56 # See #4871 21:21:56 requested_fixtures_that_should_finalize_us = [] 21:21:56 for argname in self.argnames: 21:21:56 fixturedef = request._get_active_fixturedef(argname) 21:21:56 # Saves requested fixtures in a list so we later can add our finalizer 21:21:56 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:56 # down first. This is generally handled by SetupState, but still currently 21:21:56 # needed when this fixture is not parametrized but depends on a parametrized 21:21:56 # fixture. 21:21:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:56 21:21:56 # Check for (and return) cached value/exception. 21:21:56 if self.cached_result is not None: 21:21:56 request_cache_key = self.cache_key(request) 21:21:56 cache_key = self.cached_result[1] 21:21:56 try: 21:21:56 # Attempt to make a normal == check: this might fail for objects 21:21:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:56 cache_hit = bool(request_cache_key == cache_key) 21:21:56 except (ValueError, RuntimeError): 21:21:56 # If the comparison raises, use 'is' as fallback. 21:21:56 cache_hit = request_cache_key is cache_key 21:21:56 21:21:56 if cache_hit: 21:21:56 if self.cached_result[2] is not None: 21:21:56 exc, exc_tb = self.cached_result[2] 21:21:56 raise exc.with_traceback(exc_tb) 21:21:56 else: 21:21:56 return self.cached_result[0] 21:21:56 # We have a previous but differently parametrized fixture instance 21:21:56 # so we need to tear it down before creating a new one. 21:21:56 self.finish(request) 21:21:56 assert self.cached_result is None 21:21:56 21:21:56 # Add finalizer to requested fixtures we saved previously. 21:21:56 # We make sure to do this after checking for cached value to avoid 21:21:56 # adding our finalizer multiple times. (#12135) 21:21:56 finalizer = functools.partial(self.finish, request=request) 21:21:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:56 parent_fixture.addfinalizer(finalizer) 21:21:56 21:21:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:56 # which is executed last. 21:21:56 > assert not self._finalizers 21:21:56 ^^^^^^^^^^^^^^^^^^^^ 21:21:56 E AssertionError 21:21:56 21:21:56 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:21:56 =========================== short test summary info ============================ 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 21:21:56 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 21:21:56 35 errors in 107.06s (0:01:47) 21:21:56 tests221: exit 1 (107.38 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 pid=5142 21:21:56 tests221: FAIL ✖ in 1 minute 55.69 seconds 21:21:56 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 21:21:58 tests71: freeze> python -m pip freeze --all 21:21:58 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:21:58 tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 21:21:58 using environment variables from ./karaf71.env 21:21:58 pytest -q transportpce_tests/7.1/test01_portmapping.py 21:22:02 tests_hybrid: freeze> python -m pip freeze --all 21:22:02 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 21:22:02 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid 21:22:02 using environment variables from ./karaf221.env 21:22:02 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 21:23:39 EEEEEEEEEEEE [100%] 21:23:41 ==================================== ERRORS ==================================== 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 21:23:41 21:23:41 cls = 21:23:41 21:23:41 @classmethod 21:23:41 def setUpClass(cls): 21:23:41 > cls.processes = test_utils.start_tpce() 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 21:23:41 transportpce_tests/7.1/test01_portmapping.py:32: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 def start_tpce(): 21:23:41 if 'NO_ODL_STARTUP' in os.environ: 21:23:41 print('No OpenDaylight instance to start!') 21:23:41 return [] 21:23:41 print('starting OpenDaylight...') 21:23:41 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:23:41 process = start_lighty() 21:23:41 else: 21:23:41 process = start_karaf() 21:23:41 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:23:41 print('OpenDaylight started !') 21:23:41 else: 21:23:41 print('OpenDaylight failed to start !') 21:23:41 shutdown_process(process) 21:23:41 for pid in process_list: 21:23:41 shutdown_process(pid) 21:23:41 > sys.exit(1) 21:23:41 E SystemExit: 1 21:23:41 21:23:41 transportpce_tests/common/test_utils.py:233: SystemExit 21:23:41 ---------------------------- Captured stdout setup ----------------------------- 21:23:41 starting OpenDaylight... 21:23:41 starting KARAF (karaf71) TransportPCE build... 21:23:41 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d09a700> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d0bf740> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1f7b4ea0> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d09a700> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1e867e20> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d09a700> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d0bf600> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d0bdd00> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d0bf920> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d0bf7e0> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 21:23:41 21:23:41 cls = 21:23:41 func = . at 0x7f1f1d09a700> 21:23:41 when = 'setup' 21:23:41 reraise = (, ) 21:23:41 21:23:41 @classmethod 21:23:41 def from_call( 21:23:41 cls, 21:23:41 func: Callable[[], TResult], 21:23:41 when: Literal["collect", "setup", "call", "teardown"], 21:23:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:41 ) -> CallInfo[TResult]: 21:23:41 """Call func, wrapping the result in a CallInfo. 21:23:41 21:23:41 :param func: 21:23:41 The function to call. Called without arguments. 21:23:41 :type func: Callable[[], _pytest.runner.TResult] 21:23:41 :param when: 21:23:41 The phase in which the function is called. 21:23:41 :param reraise: 21:23:41 Exception or exceptions that shall propagate if raised by the 21:23:41 function, instead of being wrapped in the CallInfo. 21:23:41 """ 21:23:41 excinfo = None 21:23:41 instant = timing.Instant() 21:23:41 try: 21:23:41 > result: TResult | None = func() 21:23:41 ^^^^^^ 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:41 lambda: runtest_hook(item=item, **kwds), 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:41 yield 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:41 return (yield) 21:23:41 ^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:41 item.session._setupstate.setup(item) 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:41 col.setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:41 super().setup() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:41 self._request._fillfixtures() 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:41 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:41 fixturedef = self._get_active_fixturedef(argname) 21:23:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:41 fixturedef.execute(request=subrequest) 21:23:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:41 21:23:41 self = 21:23:41 request = > 21:23:41 21:23:41 def execute(self, request: SubRequest) -> FixtureValue: 21:23:41 """Return the value of this fixture, executing it if not cached.""" 21:23:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:41 # This needs to be done before checking if we have a cached value, since 21:23:41 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:41 # parametrization, they finalize themselves and fixtures depending on it 21:23:41 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:41 # See #4871 21:23:41 requested_fixtures_that_should_finalize_us = [] 21:23:41 for argname in self.argnames: 21:23:41 fixturedef = request._get_active_fixturedef(argname) 21:23:41 # Saves requested fixtures in a list so we later can add our finalizer 21:23:41 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:41 # down first. This is generally handled by SetupState, but still currently 21:23:41 # needed when this fixture is not parametrized but depends on a parametrized 21:23:41 # fixture. 21:23:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:41 21:23:41 # Check for (and return) cached value/exception. 21:23:41 if self.cached_result is not None: 21:23:41 request_cache_key = self.cache_key(request) 21:23:41 cache_key = self.cached_result[1] 21:23:41 try: 21:23:41 # Attempt to make a normal == check: this might fail for objects 21:23:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:41 cache_hit = bool(request_cache_key == cache_key) 21:23:41 except (ValueError, RuntimeError): 21:23:41 # If the comparison raises, use 'is' as fallback. 21:23:41 cache_hit = request_cache_key is cache_key 21:23:41 21:23:41 if cache_hit: 21:23:41 if self.cached_result[2] is not None: 21:23:41 exc, exc_tb = self.cached_result[2] 21:23:41 raise exc.with_traceback(exc_tb) 21:23:41 else: 21:23:41 return self.cached_result[0] 21:23:41 # We have a previous but differently parametrized fixture instance 21:23:41 # so we need to tear it down before creating a new one. 21:23:41 self.finish(request) 21:23:41 assert self.cached_result is None 21:23:41 21:23:41 # Add finalizer to requested fixtures we saved previously. 21:23:41 # We make sure to do this after checking for cached value to avoid 21:23:41 # adding our finalizer multiple times. (#12135) 21:23:41 finalizer = functools.partial(self.finish, request=request) 21:23:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:41 parent_fixture.addfinalizer(finalizer) 21:23:41 21:23:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:41 # which is executed last. 21:23:41 > assert not self._finalizers 21:23:41 ^^^^^^^^^^^^^^^^^^^^ 21:23:41 E AssertionError 21:23:41 21:23:41 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:41 =========================== short test summary info ============================ 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 21:23:41 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 21:23:41 12 errors in 102.54s (0:01:42) 21:23:41 tests71: exit 1 (102.92 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 pid=5278 21:23:43 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:23:53 ==================================== ERRORS ==================================== 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 21:23:53 21:23:53 cls = 21:23:53 21:23:53 @classmethod 21:23:53 def setUpClass(cls): 21:23:53 > cls.processes = test_utils.start_tpce() 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 21:23:53 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 def start_tpce(): 21:23:53 if 'NO_ODL_STARTUP' in os.environ: 21:23:53 print('No OpenDaylight instance to start!') 21:23:53 return [] 21:23:53 print('starting OpenDaylight...') 21:23:53 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:23:53 process = start_lighty() 21:23:53 else: 21:23:53 process = start_karaf() 21:23:53 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:23:53 print('OpenDaylight started !') 21:23:53 else: 21:23:53 print('OpenDaylight failed to start !') 21:23:53 shutdown_process(process) 21:23:53 for pid in process_list: 21:23:53 shutdown_process(pid) 21:23:53 > sys.exit(1) 21:23:53 E SystemExit: 1 21:23:53 21:23:53 transportpce_tests/common/test_utils.py:233: SystemExit 21:23:53 ---------------------------- Captured stdout setup ----------------------------- 21:23:53 starting OpenDaylight... 21:23:53 starting KARAF (karaf221) TransportPCE build... 21:23:53 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48f63e0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992ac0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f606e7a0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48f7ba0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48f7f60> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48f7ba0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f49923e0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4360> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f6fc18a0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48f7f60> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993420> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4040> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f6fc18a0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993880> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f6fc18a0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4220> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993880> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f6fc18a0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4220> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4220> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4990040> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4990040> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992660> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992de0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992ca0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993d80> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f49936a0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993c40> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993600> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993740> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993d80> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992ca0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4990040> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993740> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4993880> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992660> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992b60> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f4992de0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f48b4400> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 21:23:53 21:23:53 cls = 21:23:53 func = . at 0x7f47f49923e0> 21:23:53 when = 'setup' 21:23:53 reraise = (, ) 21:23:53 21:23:53 @classmethod 21:23:53 def from_call( 21:23:53 cls, 21:23:53 func: Callable[[], TResult], 21:23:53 when: Literal["collect", "setup", "call", "teardown"], 21:23:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:53 ) -> CallInfo[TResult]: 21:23:53 """Call func, wrapping the result in a CallInfo. 21:23:53 21:23:53 :param func: 21:23:53 The function to call. Called without arguments. 21:23:53 :type func: Callable[[], _pytest.runner.TResult] 21:23:53 :param when: 21:23:53 The phase in which the function is called. 21:23:53 :param reraise: 21:23:53 Exception or exceptions that shall propagate if raised by the 21:23:53 function, instead of being wrapped in the CallInfo. 21:23:53 """ 21:23:53 excinfo = None 21:23:53 instant = timing.Instant() 21:23:53 try: 21:23:53 > result: TResult | None = func() 21:23:53 ^^^^^^ 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:53 lambda: runtest_hook(item=item, **kwds), 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 21:23:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 21:23:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 21:23:53 yield 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 21:23:53 return (yield) 21:23:53 ^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:53 item.session._setupstate.setup(item) 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:53 col.setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 21:23:53 super().setup() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 21:23:53 self._request._fillfixtures() 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 21:23:53 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 21:23:53 fixturedef = self._get_active_fixturedef(argname) 21:23:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 21:23:53 fixturedef.execute(request=subrequest) 21:23:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:53 21:23:53 self = 21:23:53 request = > 21:23:53 21:23:53 def execute(self, request: SubRequest) -> FixtureValue: 21:23:53 """Return the value of this fixture, executing it if not cached.""" 21:23:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:53 # This needs to be done before checking if we have a cached value, since 21:23:53 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:53 # parametrization, they finalize themselves and fixtures depending on it 21:23:53 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:53 # See #4871 21:23:53 requested_fixtures_that_should_finalize_us = [] 21:23:53 for argname in self.argnames: 21:23:53 fixturedef = request._get_active_fixturedef(argname) 21:23:53 # Saves requested fixtures in a list so we later can add our finalizer 21:23:53 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:53 # down first. This is generally handled by SetupState, but still currently 21:23:53 # needed when this fixture is not parametrized but depends on a parametrized 21:23:53 # fixture. 21:23:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:53 21:23:53 # Check for (and return) cached value/exception. 21:23:53 if self.cached_result is not None: 21:23:53 request_cache_key = self.cache_key(request) 21:23:53 cache_key = self.cached_result[1] 21:23:53 try: 21:23:53 # Attempt to make a normal == check: this might fail for objects 21:23:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:53 cache_hit = bool(request_cache_key == cache_key) 21:23:53 except (ValueError, RuntimeError): 21:23:53 # If the comparison raises, use 'is' as fallback. 21:23:53 cache_hit = request_cache_key is cache_key 21:23:53 21:23:53 if cache_hit: 21:23:53 if self.cached_result[2] is not None: 21:23:53 exc, exc_tb = self.cached_result[2] 21:23:53 raise exc.with_traceback(exc_tb) 21:23:53 else: 21:23:53 return self.cached_result[0] 21:23:53 # We have a previous but differently parametrized fixture instance 21:23:53 # so we need to tear it down before creating a new one. 21:23:53 self.finish(request) 21:23:53 assert self.cached_result is None 21:23:53 21:23:53 # Add finalizer to requested fixtures we saved previously. 21:23:53 # We make sure to do this after checking for cached value to avoid 21:23:53 # adding our finalizer multiple times. (#12135) 21:23:53 finalizer = functools.partial(self.finish, request=request) 21:23:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:53 parent_fixture.addfinalizer(finalizer) 21:23:53 21:23:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:53 # which is executed last. 21:23:53 > assert not self._finalizers 21:23:53 ^^^^^^^^^^^^^^^^^^^^ 21:23:53 E AssertionError 21:23:53 21:23:53 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 21:23:53 =========================== short test summary info ============================ 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 21:23:53 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 21:23:53 51 errors in 110.47s (0:01:50) 21:23:53 tests71: FAIL ✖ in 1 minute 50.19 seconds 21:23:53 tests_hybrid: exit 1 (110.84 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid pid=5297 21:23:53 buildcontroller: FAIL code 1 (18.99=setup[8.34]+cmd[10.65] seconds) 21:23:53 sims: OK (13.42=setup[8.32]+cmd[5.10] seconds) 21:23:53 build_karaf_tests121: FAIL code 127 (15.67=setup[7.25]+cmd[8.42] seconds) 21:23:53 testsPCE: FAIL code 1 (176.39=setup[51.52]+cmd[124.87] seconds) 21:23:53 tests121: FAIL code 1 (112.07=setup[7.03]+cmd[105.04] seconds) 21:23:53 build_karaf_tests221: FAIL code 127 (14.13=setup[8.23]+cmd[5.89] seconds) 21:23:53 tests_tapi: FAIL code 1 (117.37=setup[6.99]+cmd[110.38] seconds) 21:23:53 tests221: FAIL code 1 (115.69=setup[8.30]+cmd[107.38] seconds) 21:23:53 build_karaf_tests71: FAIL code 127 (13.07=setup[7.37]+cmd[5.69] seconds) 21:23:53 tests71: FAIL code 1 (110.19=setup[7.27]+cmd[102.92] seconds) 21:23:53 build_karaf_tests200: FAIL code 127 (13.01=setup[7.15]+cmd[5.86] seconds) 21:23:53 tests200: FAIL code 1 (110.71=setup[8.33]+cmd[102.38] seconds) 21:23:53 tests_hybrid: FAIL code 1 (117.46=setup[6.62]+cmd[110.84] seconds) 21:23:53 buildlighty: FAIL code 9 (21.11=setup[8.76]+cmd[12.35] seconds) 21:23:53 docs: OK (19.78=setup[17.07]+cmd[2.71] seconds) 21:23:53 docs-linkcheck: OK (21.66=setup[16.71]+cmd[4.95] seconds) 21:23:53 checkbashisms: OK (3.26=setup[2.00]+cmd[0.01,0.04,1.21] seconds) 21:23:53 pre-commit: OK (68.52=setup[2.78]+cmd[0.00,0.00,55.24,10.50] seconds) 21:23:53 pylint: OK (30.78=setup[3.68]+cmd[27.10] seconds) 21:23:53 evaluation failed :( (576.72 seconds) 21:23:53 + tox_status=1 21:23:53 + echo '---> Completed tox runs' 21:23:53 ---> Completed tox runs 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/build_karaf_tests121/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=build_karaf_tests121 21:23:53 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests121 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/build_karaf_tests200/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=build_karaf_tests200 21:23:53 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests200 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/build_karaf_tests221/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=build_karaf_tests221 21:23:53 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests221 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/build_karaf_tests71/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=build_karaf_tests71 21:23:53 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests71 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/buildcontroller/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=buildcontroller 21:23:53 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildcontroller 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/buildlighty/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=buildlighty 21:23:53 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildlighty 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/checkbashisms/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=checkbashisms 21:23:53 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/checkbashisms 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/docs-linkcheck/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=docs-linkcheck 21:23:53 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs-linkcheck 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/docs/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=docs 21:23:53 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs 21:23:53 + for i in .tox/*/log 21:23:53 ++ echo .tox/pre-commit/log 21:23:53 ++ awk -F/ '{print $2}' 21:23:53 + tox_env=pre-commit 21:23:53 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pre-commit 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/pylint/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=pylint 21:23:54 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pylint 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/sims/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=sims 21:23:54 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/sims 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/tests121/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=tests121 21:23:54 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests121 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/tests200/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=tests200 21:23:54 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests200 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/tests221/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=tests221 21:23:54 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests221 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/tests71/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=tests71 21:23:54 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests71 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/testsPCE/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=testsPCE 21:23:54 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/testsPCE 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/tests_hybrid/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=tests_hybrid 21:23:54 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_hybrid 21:23:54 + for i in .tox/*/log 21:23:54 ++ echo .tox/tests_tapi/log 21:23:54 ++ awk -F/ '{print $2}' 21:23:54 + tox_env=tests_tapi 21:23:54 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_tapi 21:23:54 + DOC_DIR=docs/_build/html 21:23:54 + [[ -d docs/_build/html ]] 21:23:54 + echo '---> Archiving generated docs' 21:23:54 ---> Archiving generated docs 21:23:54 + mv docs/_build/html /w/workspace/transportpce-tox-verify-chromium/archives/docs 21:23:54 + echo '---> tox-run.sh ends' 21:23:54 ---> tox-run.sh ends 21:23:54 + test 1 -eq 0 21:23:54 + exit 1 21:23:54 ++ '[' 1 = 1 ']' 21:23:54 ++ '[' -x /usr/bin/clear_console ']' 21:23:54 ++ /usr/bin/clear_console -q 21:23:54 Build step 'Execute shell' marked build as failure 21:23:54 $ ssh-agent -k 21:23:54 unset SSH_AUTH_SOCK; 21:23:54 unset SSH_AGENT_PID; 21:23:54 echo Agent pid 1554 killed; 21:23:54 [ssh-agent] Stopped. 21:23:54 [PostBuildScript] - [INFO] Executing post build scripts. 21:23:54 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins2932539291922748822.sh 21:23:54 ---> sysstat.sh 21:23:54 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins12329415162365497357.sh 21:23:54 ---> package-listing.sh 21:23:54 ++ facter osfamily 21:23:54 ++ tr '[:upper:]' '[:lower:]' 21:23:55 + OS_FAMILY=debian 21:23:55 + workspace=/w/workspace/transportpce-tox-verify-chromium 21:23:55 + START_PACKAGES=/tmp/packages_start.txt 21:23:55 + END_PACKAGES=/tmp/packages_end.txt 21:23:55 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:23:55 + PACKAGES=/tmp/packages_start.txt 21:23:55 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 21:23:55 + PACKAGES=/tmp/packages_end.txt 21:23:55 + case "${OS_FAMILY}" in 21:23:55 + grep '^ii' 21:23:55 + dpkg -l 21:23:55 + '[' -f /tmp/packages_start.txt ']' 21:23:55 + '[' -f /tmp/packages_end.txt ']' 21:23:55 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:23:55 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 21:23:55 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/ 21:23:55 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-chromium/archives/ 21:23:55 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins2477253864852388627.sh 21:23:55 ---> capture-instance-metadata.sh 21:23:55 Setup pyenv: 21:23:55 system 21:23:55 3.8.20 21:23:55 3.9.20 21:23:55 3.10.15 21:23:55 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:23:55 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vQiI from file:/tmp/.os_lf_venv 21:23:55 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:23:57 lf-activate-venv(): INFO: Installing additional packages: lftools 21:24:10 lf-activate-venv(): INFO: Adding /tmp/venv-vQiI/bin to PATH 21:24:10 INFO: Running in OpenStack, capturing instance metadata 21:24:11 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins12083001632987818513.sh 21:24:11 provisioning config files... 21:24:11 Could not find credentials [logs] for transportpce-tox-verify-chromium #10 21:24:11 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-chromium@tmp/config18368716409054232288tmp 21:24:11 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 21:24:11 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 21:24:11 provisioning config files... 21:24:12 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 21:24:12 [EnvInject] - Injecting environment variables from a build step. 21:24:12 [EnvInject] - Injecting as environment variables the properties content 21:24:12 SERVER_ID=logs 21:24:12 21:24:12 [EnvInject] - Variables injected successfully. 21:24:12 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins14952729864107169913.sh 21:24:12 ---> create-netrc.sh 21:24:12 WARN: Log server credential not found. 21:24:12 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins10956639105244108325.sh 21:24:12 ---> python-tools-install.sh 21:24:12 Setup pyenv: 21:24:12 system 21:24:12 3.8.20 21:24:12 3.9.20 21:24:12 3.10.15 21:24:12 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:24:12 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vQiI from file:/tmp/.os_lf_venv 21:24:12 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:24:14 lf-activate-venv(): INFO: Installing additional packages: lftools 21:24:23 lf-activate-venv(): INFO: Adding /tmp/venv-vQiI/bin to PATH 21:24:23 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins14731689837148108008.sh 21:24:23 ---> uv-install.sh 21:24:23 uv 0.12.13 is already installed 21:24:23 uvx 0.12.13 (x86_64-unknown-linux-gnu) 21:24:23 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins3242285480691473567.sh 21:24:23 ---> sudo-logs.sh 21:24:23 Archiving 'sudo' log.. 21:24:24 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins6074934994225506007.sh 21:24:24 ---> job-cost.sh 21:24:24 INFO: Activating Python virtual environment... 21:24:24 Setup pyenv: 21:24:24 system 21:24:24 3.8.20 21:24:24 3.9.20 21:24:24 3.10.15 21:24:24 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:24:24 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vQiI from file:/tmp/.os_lf_venv 21:24:24 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:24:26 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 21:24:33 lf-activate-venv(): INFO: Adding /tmp/venv-vQiI/bin to PATH 21:24:33 INFO: No stack-cost file found 21:24:33 INFO: Instance uptime: 744s 21:24:33 INFO: Fetching instance metadata (attempt 1 of 3)... 21:24:33 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 21:24:33 INFO: Successfully fetched instance metadata 21:24:33 INFO: Instance type: v3-standard-4 21:24:33 INFO: Retrieving pricing info for: v3-standard-4 21:24:33 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 21:24:33 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=744 21:24:33 INFO: Successfully fetched Vexxhost pricing API 21:24:33 INFO: Retrieved cost: 0.11 21:24:33 INFO: Retrieved resource: v3-standard-4 21:24:33 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-chromium/archives/cost 21:24:33 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-chromium/archives/cost.csv 21:24:33 INFO: Successfully archived job cost data 21:24:33 DEBUG: Cost data: transportpce-tox-verify-chromium,10,2026-09-10 21:24:33,v3-standard-4,744,0.11,0.00,FAILURE 21:24:33 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins17144427340332403934.sh 21:24:33 ---> logs-deploy.sh 21:24:33 Setup pyenv: 21:24:34 system 21:24:34 3.8.20 21:24:34 3.9.20 21:24:34 3.10.15 21:24:34 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 21:24:34 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vQiI from file:/tmp/.os_lf_venv 21:24:34 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:24:36 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 21:24:45 lf-activate-venv(): INFO: Adding /tmp/venv-vQiI/bin to PATH 21:24:45 WARNING: Nexus logging server not set 21:24:45 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-chromium/10/ 21:24:45 INFO: archiving logs to S3 21:24:46 ---> uname -a: 21:24:46 Linux prd-ubuntu2204-docker-4c-16g-6887 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 21:24:46 21:24:46 21:24:46 ---> lscpu: 21:24:46 Architecture: x86_64 21:24:46 CPU op-mode(s): 32-bit, 64-bit 21:24:46 Address sizes: 40 bits physical, 48 bits virtual 21:24:46 Byte Order: Little Endian 21:24:46 CPU(s): 4 21:24:46 On-line CPU(s) list: 0-3 21:24:46 Vendor ID: AuthenticAMD 21:24:46 Model name: AMD EPYC-Rome Processor 21:24:46 CPU family: 23 21:24:46 Model: 49 21:24:46 Thread(s) per core: 1 21:24:46 Core(s) per socket: 1 21:24:46 Socket(s): 4 21:24:46 Stepping: 0 21:24:46 BogoMIPS: 5599.99 21:24:46 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 21:24:46 Virtualization: AMD-V 21:24:46 Hypervisor vendor: KVM 21:24:46 Virtualization type: full 21:24:46 L1d cache: 128 KiB (4 instances) 21:24:46 L1i cache: 128 KiB (4 instances) 21:24:46 L2 cache: 2 MiB (4 instances) 21:24:46 L3 cache: 64 MiB (4 instances) 21:24:46 NUMA node(s): 1 21:24:46 NUMA node0 CPU(s): 0-3 21:24:46 Vulnerability Gather data sampling: Not affected 21:24:46 Vulnerability Indirect target selection: Not affected 21:24:46 Vulnerability Itlb multihit: Not affected 21:24:46 Vulnerability L1tf: Not affected 21:24:46 Vulnerability Mds: Not affected 21:24:46 Vulnerability Meltdown: Not affected 21:24:46 Vulnerability Mmio stale data: Not affected 21:24:46 Vulnerability Reg file data sampling: Not affected 21:24:46 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 21:24:46 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 21:24:46 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 21:24:46 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 21:24:46 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 21:24:46 Vulnerability Srbds: Not affected 21:24:46 Vulnerability Tsa: Not affected 21:24:46 Vulnerability Tsx async abort: Not affected 21:24:46 Vulnerability Vmscape: Not affected 21:24:46 21:24:46 21:24:46 ---> nproc: 21:24:46 4 21:24:46 21:24:46 21:24:46 ---> df -h: 21:24:46 Filesystem Size Used Avail Use% Mounted on 21:24:46 tmpfs 1.6G 1.1M 1.6G 1% /run 21:24:46 /dev/vda1 78G 12G 67G 15% / 21:24:46 tmpfs 7.9G 0 7.9G 0% /dev/shm 21:24:46 tmpfs 5.0M 0 5.0M 0% /run/lock 21:24:46 /dev/vda15 105M 6.1M 99M 6% /boot/efi 21:24:46 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 21:24:46 21:24:46 21:24:46 ---> free -m: 21:24:46 total used free shared buff/cache available 21:24:46 Mem: 15989 683 9295 4 6009 14962 21:24:46 Swap: 1023 0 1023 21:24:46 21:24:46 21:24:46 ---> ip addr: 21:24:46 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 21:24:46 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 21:24:46 inet 127.0.0.1/8 scope host lo 21:24:46 valid_lft forever preferred_lft forever 21:24:46 inet6 ::1/128 scope host 21:24:46 valid_lft forever preferred_lft forever 21:24:46 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 21:24:46 link/ether fa:16:3e:fe:06:1a brd ff:ff:ff:ff:ff:ff 21:24:46 altname enp0s3 21:24:46 inet 10.30.170.104/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 21:24:46 valid_lft 85651sec preferred_lft 85651sec 21:24:46 inet6 fe80::f816:3eff:fefe:61a/64 scope link 21:24:46 valid_lft forever preferred_lft forever 21:24:46 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 21:24:46 link/ether 52:6c:2a:63:b0:8b brd ff:ff:ff:ff:ff:ff 21:24:46 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 21:24:46 valid_lft forever preferred_lft forever 21:24:46 inet6 fe80::506c:2aff:fe63:b08b/64 scope link 21:24:46 valid_lft forever preferred_lft forever 21:24:46 21:24:46 21:24:46 ---> sar -b -r -n DEV: 21:24:46 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6887) 09/10/26 _x86_64_ (4 CPU) 21:24:46 21:24:46 21:12:19 LINUX RESTART (4 CPU) 21:24:46 21:24:46 21:24:46 ---> sar -P ALL: 21:24:46 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6887) 09/10/26 _x86_64_ (4 CPU) 21:24:46 21:24:46 21:12:19 LINUX RESTART (4 CPU) 21:24:46 21:24:46 21:24:46