19:55:47 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125698 19:55:47 Running as SYSTEM 19:55:47 [EnvInject] - Loading node environment variables. 19:55:47 Building remotely on prd-ubuntu2204-docker-4c-16g-46932 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-titanium 19:55:48 [ssh-agent] Looking for ssh-agent implementation... 19:55:48 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 19:55:48 $ ssh-agent 19:55:48 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXb7iwdk/agent.1545 19:55:48 SSH_AGENT_PID=1547 19:55:48 [ssh-agent] Started. 19:55:48 Running ssh-add (command line suppressed) 19:55:48 Identity added: /w/workspace/transportpce-tox-verify-titanium@tmp/private_key_6730688728875047065.key (/w/workspace/transportpce-tox-verify-titanium@tmp/private_key_6730688728875047065.key) 19:55:48 [ssh-agent] Using credentials jenkins (jenkins-ssh) 19:55:48 The recommended git tool is: NONE 19:55:50 using credential jenkins-ssh 19:55:50 Wiping out workspace first. 19:55:50 Cloning the remote Git repository 19:55:50 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 19:55:50 > git init /w/workspace/transportpce-tox-verify-titanium # timeout=10 19:55:50 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 19:55:50 > git --version # timeout=10 19:55:50 > git --version # 'git version 2.34.1' 19:55:50 using GIT_SSH to set credentials jenkins-ssh 19:55:50 Verifying host key using known hosts file, will automatically accept unseen keys 19:55:50 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 19:55:54 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 19:55:54 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 19:55:55 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 19:55:55 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 19:55:55 using GIT_SSH to set credentials jenkins-ssh 19:55:55 Verifying host key using known hosts file, will automatically accept unseen keys 19:55:55 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/98/125698/2 # timeout=10 19:55:55 > git rev-parse 06806b08925bf88200d2e29d6d17757c875d127d^{commit} # timeout=10 19:55:55 Checking out Revision 06806b08925bf88200d2e29d6d17757c875d127d (refs/changes/98/125698/2) 19:55:55 > git config core.sparsecheckout # timeout=10 19:55:55 > git checkout -f 06806b08925bf88200d2e29d6d17757c875d127d # timeout=10 19:55:56 Commit message: "Bump upstreams to Ti-SR3" 19:55:56 > git rev-parse FETCH_HEAD^{commit} # timeout=10 19:55:56 > git rev-list --no-walk 5bc0bcd587537f07a3b3fc252df3bff6430a78de # timeout=10 19:55:56 > git remote # timeout=10 19:55:56 > git submodule init # timeout=10 19:55:56 > git submodule sync # timeout=10 19:55:56 > git config --get remote.origin.url # timeout=10 19:55:56 > git submodule init # timeout=10 19:55:56 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 19:55:56 ERROR: No submodules found. 19:55:59 provisioning config files... 19:55:59 copy managed file [npmrc] to file:/home/jenkins/.npmrc 19:55:59 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 19:55:59 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins10259332986008969967.sh 19:55:59 ---> python-tools-install.sh 19:55:59 Setup pyenv: 19:55:59 * system (set by /opt/pyenv/version) 19:55:59 * 3.8.20 (set by /opt/pyenv/version) 19:55:59 * 3.9.20 (set by /opt/pyenv/version) 19:55:59 3.10.15 19:55:59 3.11.10 19:56:04 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-qjcJ 19:56:04 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 19:56:04 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 19:56:08 lf-activate-venv(): INFO: Installing additional packages: lftools 19:56:33 lf-activate-venv(): INFO: Adding /tmp/venv-qjcJ/bin to PATH 19:56:33 Generating Requirements File 19:57:03 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. 19:57:03 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 19:57:04 Python 3.11.10 19:57:04 pip 26.2.1 from /tmp/venv-qjcJ/lib/python3.11/site-packages/pip (python 3.11) 19:57:04 aiohappyeyeballs==2.7.1 19:57:04 aiohttp==3.14.3 19:57:04 aiosignal==1.4.0 19:57:04 appdirs==1.4.4 19:57:04 argcomplete==3.7.2 19:57:04 aspy.yaml==1.3.0 19:57:04 attrs==26.1.0 19:57:04 autopage==0.6.0 19:57:04 beautifulsoup4==4.15.0 19:57:04 boto3==1.43.87 19:57:04 botocore==1.43.87 19:57:04 bs4==0.0.2 19:57:04 certifi==2026.7.22 19:57:04 cffi==2.1.1 19:57:04 cfgv==3.5.0 19:57:04 chardet==7.6.0 19:57:04 charset-normalizer==3.5.1 19:57:04 click==8.5.0 19:57:04 cliff==4.16.0 19:57:04 cmd2==4.2.2 19:57:04 cryptography==3.3.2 19:57:04 debtcollector==3.1.0 19:57:04 decorator==5.3.1 19:57:04 defusedxml==0.7.1 19:57:04 Deprecated==1.3.1 19:57:04 distlib==0.4.3 19:57:04 dnspython==2.8.0 19:57:04 docker==7.2.0 19:57:04 dogpile.cache==1.5.0 19:57:04 durationpy==0.11 19:57:04 email-validator==2.3.0 19:57:04 filelock==3.32.5 19:57:04 frozenlist==1.8.0 19:57:04 future==1.0.0 19:57:04 gitdb==4.0.12 19:57:04 GitPython==3.1.61 19:57:04 httplib2==0.30.2 19:57:04 identify==2.6.19 19:57:04 idna==3.19 19:57:04 importlib-resources==1.5.0 19:57:04 iso8601==2.1.0 19:57:04 Jinja2==3.1.6 19:57:04 jmespath==1.1.0 19:57:04 jsonpatch==1.33 19:57:04 jsonpointer==3.1.1 19:57:04 jsonschema==4.26.0 19:57:04 jsonschema-specifications==2025.9.1 19:57:04 keystoneauth1==5.17.0 19:57:04 kubernetes==36.0.3 19:57:04 lftools==0.37.23 19:57:04 lxml==6.1.3 19:57:04 markdown-it-py==4.2.0 19:57:04 MarkupSafe==3.0.3 19:57:04 mdurl==0.1.2 19:57:04 msgpack==1.2.2 19:57:04 multi_key_dict==2.0.3 19:57:04 multidict==6.7.1 19:57:04 munch==4.0.0 19:57:04 netaddr==1.3.0 19:57:04 niet==1.4.2 19:57:04 nodeenv==1.10.0 19:57:04 oauth2client==4.1.3 19:57:04 oauthlib==3.3.1 19:57:04 openstacksdk==4.20.0 19:57:04 os-service-types==1.9.0 19:57:04 osc-lib==4.7.0 19:57:04 oslo.config==10.7.0 19:57:04 oslo.context==6.5.0 19:57:04 oslo.i18n==6.9.0 19:57:04 oslo.log==8.3.1 19:57:04 oslo.serialization==5.11.0 19:57:04 oslo.utils==10.2.0 19:57:04 packaging==26.3 19:57:04 pbr==7.0.3 19:57:04 platformdirs==4.11.7 19:57:04 prettytable==3.18.0 19:57:04 prompt_toolkit==3.0.53 19:57:04 propcache==0.5.2 19:57:04 psutil==7.2.2 19:57:04 pyasn1==0.6.4 19:57:04 pyasn1_modules==0.4.2 19:57:04 pycparser==3.0 19:57:04 pygerrit2==2.0.15 19:57:04 PyGithub==2.10.0 19:57:04 Pygments==2.21.0 19:57:04 PyJWT==2.13.0 19:57:04 PyNaCl==1.6.2 19:57:04 pyparsing==2.4.7 19:57:04 pyperclip==1.11.0 19:57:04 pyrsistent==0.20.0 19:57:04 python-dateutil==2.9.0.post0 19:57:04 python-discovery==1.6.0 19:57:04 python-heatclient==5.3.0 19:57:04 python-jenkins==1.8.3 19:57:04 python-keystoneclient==6.0.0 19:57:04 python-magnumclient==5.0.0 19:57:04 python-manilaclient==6.3.0 19:57:04 python-openstackclient==10.3.0 19:57:04 python-swiftclient==4.11.0 19:57:04 PyYAML==6.0.3 19:57:04 referencing==0.37.0 19:57:04 requests==2.34.2 19:57:04 requests-oauthlib==2.0.0 19:57:04 rfc3986==2.0.0 19:57:04 rich==15.0.0 19:57:04 rich-argparse==1.8.0 19:57:04 rpds-py==2026.6.3 19:57:04 rsa==4.9.1 19:57:04 ruamel.yaml==0.19.1 19:57:04 ruamel.yaml.clib==0.2.15 19:57:04 s3transfer==0.19.2 19:57:04 simplejson==4.1.2 19:57:04 six==1.17.0 19:57:04 smmap==5.0.3 19:57:04 soupsieve==2.9.2 19:57:04 stevedore==5.9.1 19:57:04 tabulate==0.10.0 19:57:04 toml==0.10.2 19:57:04 tomlkit==0.15.1 19:57:04 tqdm==4.70.0 19:57:04 typing_extensions==4.16.0 19:57:04 urllib3==1.26.20 19:57:04 virtualenv==21.7.8 19:57:04 wcwidth==0.8.3 19:57:04 websocket-client==1.9.2 19:57:04 wrapt==2.4.0 19:57:04 xdg==6.0.0 19:57:04 xmltodict==1.0.4 19:57:04 yarl==1.24.5 19:57:04 yq==4.1.2 19:57:04 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins11022568230560464265.sh 19:57:04 ---> uv-install.sh 19:57:04 Installing uv/uvx (latest) using shell installer 19:57:04 2026-09-02 19:57:04 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-RV89eW.sh" [1] 19:57:04 downloading uv 0.12.9 x86_64-unknown-linux-gnu 19:57:05 installing to /home/jenkins/.local/bin 19:57:05 uv 19:57:05 uvx 19:57:05 everything's installed! 19:57:05 19:57:05 To add $HOME/.local/bin to your PATH, either restart your shell or run: 19:57:05 19:57:05 source $HOME/.local/bin/env (sh, bash, zsh) 19:57:05 source $HOME/.local/bin/env.fish (fish) 19:57:05 Adding install location to PATH 19:57:05 ---> Validating uv/uvx install 19:57:05 uvx 0.12.9 (x86_64-unknown-linux-gnu) 19:57:05 [EnvInject] - Injecting environment variables from a build step. 19:57:05 [EnvInject] - Injecting as environment variables the properties content 19:57:05 PYTHON=python3 19:57:05 19:57:05 [EnvInject] - Variables injected successfully. 19:57:05 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins10191927439171799006.sh 19:57:06 ---> tox-install.sh 19:57:06 + source /home/jenkins/lf-env.sh 19:57:06 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 19:57:06 ++ mktemp -d /tmp/venv-XXXX 19:57:06 + lf_venv=/tmp/venv-vubG 19:57:06 + local venv_file=/tmp/.os_lf_venv 19:57:06 + local python=python3 19:57:06 + local options 19:57:06 + local set_path=true 19:57:06 + local install_args= 19:57:06 ++ 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 19:57:06 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 19:57:06 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 19:57:06 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 19:57:06 + true 19:57:06 + case $1 in 19:57:06 + venv_file=/tmp/.toxenv 19:57:06 + shift 2 19:57:06 + true 19:57:06 + case $1 in 19:57:06 + shift 19:57:06 + break 19:57:06 + case $python in 19:57:06 + local pkg_list= 19:57:06 + [[ -d /opt/pyenv ]] 19:57:06 + echo 'Setup pyenv:' 19:57:06 Setup pyenv: 19:57:06 + export PYENV_ROOT=/opt/pyenv 19:57:06 + PYENV_ROOT=/opt/pyenv 19:57:06 + 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 19:57:06 + 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 19:57:06 + pyenv versions 19:57:06 system 19:57:06 3.8.20 19:57:06 3.9.20 19:57:06 3.10.15 19:57:06 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 19:57:06 + command -v pyenv 19:57:06 ++ pyenv init - --no-rehash 19:57:06 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 19:57:06 for i in ${!paths[@]}; do 19:57:06 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 19:57:06 fi; done; 19:57:06 echo "${paths[*]}"'\'')" 19:57:06 export PATH="/opt/pyenv/shims:${PATH}" 19:57:06 export PYENV_SHELL=bash 19:57:06 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 19:57:06 pyenv() { 19:57:06 local command 19:57:06 command="${1:-}" 19:57:06 if [ "$#" -gt 0 ]; then 19:57:06 shift 19:57:06 fi 19:57:06 19:57:06 case "$command" in 19:57:06 rehash|shell) 19:57:06 eval "$(pyenv "sh-$command" "$@")" 19:57:06 ;; 19:57:06 *) 19:57:06 command pyenv "$command" "$@" 19:57:06 ;; 19:57:06 esac 19:57:06 }' 19:57:06 +++ bash --norc -ec 'IFS=:; paths=($PATH); 19:57:06 for i in ${!paths[@]}; do 19:57:06 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 19:57:06 fi; done; 19:57:06 echo "${paths[*]}"' 19:57:06 ++ 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 19:57:06 ++ 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 19:57:06 ++ 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 19:57:06 ++ export PYENV_SHELL=bash 19:57:06 ++ PYENV_SHELL=bash 19:57:06 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 19:57:06 +++ complete -F _pyenv pyenv 19:57:06 ++ lf-pyver python3 19:57:06 ++ local py_version_xy=python3 19:57:06 ++ local py_version_xyz= 19:57:06 ++ sed 's/^[ *]* //' 19:57:06 ++ pyenv versions 19:57:06 ++ local command 19:57:06 ++ command=versions 19:57:06 ++ '[' 1 -gt 0 ']' 19:57:06 ++ shift 19:57:06 ++ case "$command" in 19:57:06 ++ command pyenv versions 19:57:06 ++ grep -E '^[0-9.]*[0-9]$' 19:57:06 ++ awk '{ print $1 }' 19:57:06 ++ [[ ! -s /tmp/.pyenv_versions ]] 19:57:06 +++ grep '^3' /tmp/.pyenv_versions 19:57:06 +++ sort -V 19:57:06 +++ tail -n 1 19:57:06 ++ py_version_xyz=3.11.10 19:57:06 ++ [[ -z 3.11.10 ]] 19:57:06 ++ echo 3.11.10 19:57:06 ++ return 0 19:57:06 + pyenv local 3.11.10 19:57:06 + local command 19:57:06 + command=local 19:57:06 + '[' 2 -gt 0 ']' 19:57:06 + shift 19:57:06 + case "$command" in 19:57:06 + command pyenv local 3.11.10 19:57:06 + for arg in "$@" 19:57:06 + case $arg in 19:57:06 + pkg_list+='tox ' 19:57:06 + for arg in "$@" 19:57:06 + case $arg in 19:57:06 + pkg_list+='virtualenv ' 19:57:06 + for arg in "$@" 19:57:06 + case $arg in 19:57:06 + pkg_list+='urllib3~=1.26.15 ' 19:57:06 + [[ -f /tmp/.toxenv ]] 19:57:06 + [[ ! -f /tmp/.toxenv ]] 19:57:06 + [[ -n '' ]] 19:57:06 + python3 -m venv /tmp/venv-vubG 19:57:10 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-vubG' 19:57:10 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-vubG 19:57:10 + echo /tmp/venv-vubG 19:57:10 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 19:57:10 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 19:57:10 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 19:57:10 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 19:57:10 + local 'pip_opts=--upgrade --quiet' 19:57:10 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 19:57:10 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 19:57:10 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 19:57:10 + [[ -n '' ]] 19:57:10 + [[ -n '' ]] 19:57:10 + lf-venv-pip-install /tmp/venv-vubG/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 19:57:10 + local venv_python=/tmp/venv-vubG/bin/python3 19:57:10 + shift 19:57:10 + local upstream=https://pypi.org/simple 19:57:10 + /tmp/venv-vubG/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 19:57:14 + return 0 19:57:14 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 19:57:14 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 19:57:14 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 19:57:14 + lf-venv-pip-install /tmp/venv-vubG/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 19:57:14 + local venv_python=/tmp/venv-vubG/bin/python3 19:57:14 + shift 19:57:14 + local upstream=https://pypi.org/simple 19:57:14 + /tmp/venv-vubG/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 19:57:16 + return 0 19:57:16 + type python3 19:57:16 + true 19:57:16 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-vubG/bin to PATH' 19:57:16 lf-activate-venv(): INFO: Adding /tmp/venv-vubG/bin to PATH 19:57:16 + PATH=/tmp/venv-vubG/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 19:57:16 + return 0 19:57:16 + python3 --version 19:57:16 Python 3.11.10 19:57:16 + python3 -m pip --version 19:57:16 pip 26.2.1 from /tmp/venv-vubG/lib/python3.11/site-packages/pip (python 3.11) 19:57:16 + python3 -m pip freeze 19:57:16 cachetools==7.1.8 19:57:16 colorama==0.4.6 19:57:16 distlib==0.4.3 19:57:16 filelock==3.32.5 19:57:16 packaging==26.3 19:57:16 platformdirs==4.11.7 19:57:16 pluggy==1.6.0 19:57:16 pyproject-api==1.11.0 19:57:16 python-discovery==1.6.0 19:57:16 tomli_w==1.2.0 19:57:16 tox==4.61.2 19:57:16 typing_extensions==4.16.0 19:57:16 urllib3==1.26.20 19:57:16 virtualenv==21.7.8 19:57:16 [transportpce-tox-verify-titanium] $ /bin/sh -xe /tmp/jenkins3971258097797380281.sh 19:57:16 [EnvInject] - Injecting environment variables from a build step. 19:57:16 [EnvInject] - Injecting as environment variables the properties content 19:57:16 PARALLEL=True 19:57:16 19:57:16 [EnvInject] - Variables injected successfully. 19:57:16 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins8065374899193577409.sh 19:57:16 ---> tox-run.sh 19:57:16 + 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 19:57:16 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/tox 19:57:16 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/docs 19:57:16 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/tox 19:57:16 + cd /w/workspace/transportpce-tox-verify-titanium/. 19:57:16 + source /home/jenkins/lf-env.sh 19:57:16 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 19:57:16 ++ mktemp -d /tmp/venv-XXXX 19:57:16 + lf_venv=/tmp/venv-0Eym 19:57:16 + local venv_file=/tmp/.os_lf_venv 19:57:16 + local python=python3 19:57:16 + local options 19:57:16 + local set_path=true 19:57:16 + local install_args= 19:57:16 ++ 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 19:57:16 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 19:57:16 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 19:57:16 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 19:57:16 + true 19:57:16 + case $1 in 19:57:16 + venv_file=/tmp/.toxenv 19:57:16 + shift 2 19:57:16 + true 19:57:16 + case $1 in 19:57:16 + shift 19:57:16 + break 19:57:16 + case $python in 19:57:16 + local pkg_list= 19:57:16 + [[ -d /opt/pyenv ]] 19:57:16 + echo 'Setup pyenv:' 19:57:16 Setup pyenv: 19:57:16 + export PYENV_ROOT=/opt/pyenv 19:57:16 + PYENV_ROOT=/opt/pyenv 19:57:16 + 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 19:57:16 + 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 19:57:16 + pyenv versions 19:57:16 system 19:57:16 3.8.20 19:57:16 3.9.20 19:57:16 3.10.15 19:57:16 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 19:57:16 + command -v pyenv 19:57:16 ++ pyenv init - --no-rehash 19:57:16 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 19:57:16 for i in ${!paths[@]}; do 19:57:16 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 19:57:16 fi; done; 19:57:16 echo "${paths[*]}"'\'')" 19:57:16 export PATH="/opt/pyenv/shims:${PATH}" 19:57:16 export PYENV_SHELL=bash 19:57:16 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 19:57:16 pyenv() { 19:57:16 local command 19:57:16 command="${1:-}" 19:57:16 if [ "$#" -gt 0 ]; then 19:57:16 shift 19:57:16 fi 19:57:16 19:57:16 case "$command" in 19:57:16 rehash|shell) 19:57:16 eval "$(pyenv "sh-$command" "$@")" 19:57:16 ;; 19:57:16 *) 19:57:16 command pyenv "$command" "$@" 19:57:16 ;; 19:57:16 esac 19:57:16 }' 19:57:16 +++ bash --norc -ec 'IFS=:; paths=($PATH); 19:57:16 for i in ${!paths[@]}; do 19:57:16 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 19:57:16 fi; done; 19:57:16 echo "${paths[*]}"' 19:57:16 ++ 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 19:57:16 ++ 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 19:57:16 ++ 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 19:57:16 ++ export PYENV_SHELL=bash 19:57:16 ++ PYENV_SHELL=bash 19:57:16 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 19:57:16 +++ complete -F _pyenv pyenv 19:57:16 ++ lf-pyver python3 19:57:16 ++ local py_version_xy=python3 19:57:16 ++ local py_version_xyz= 19:57:16 ++ pyenv versions 19:57:16 ++ local command 19:57:16 ++ command=versions 19:57:16 ++ '[' 1 -gt 0 ']' 19:57:16 ++ shift 19:57:16 ++ case "$command" in 19:57:16 ++ command pyenv versions 19:57:16 ++ awk '{ print $1 }' 19:57:16 ++ grep -E '^[0-9.]*[0-9]$' 19:57:16 ++ sed 's/^[ *]* //' 19:57:16 ++ [[ ! -s /tmp/.pyenv_versions ]] 19:57:16 +++ grep '^3' /tmp/.pyenv_versions 19:57:16 +++ tail -n 1 19:57:16 +++ sort -V 19:57:16 ++ py_version_xyz=3.11.10 19:57:16 ++ [[ -z 3.11.10 ]] 19:57:16 ++ echo 3.11.10 19:57:16 ++ return 0 19:57:16 + pyenv local 3.11.10 19:57:16 + local command 19:57:16 + command=local 19:57:16 + '[' 2 -gt 0 ']' 19:57:16 + shift 19:57:16 + case "$command" in 19:57:16 + command pyenv local 3.11.10 19:57:17 + for arg in "$@" 19:57:17 + case $arg in 19:57:17 + pkg_list+='tox ' 19:57:17 + for arg in "$@" 19:57:17 + case $arg in 19:57:17 + pkg_list+='virtualenv ' 19:57:17 + for arg in "$@" 19:57:17 + case $arg in 19:57:17 + pkg_list+='urllib3~=1.26.15 ' 19:57:17 + [[ -f /tmp/.toxenv ]] 19:57:17 ++ cat /tmp/.toxenv 19:57:17 + lf_venv=/tmp/venv-vubG 19:57:17 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vubG from' file:/tmp/.toxenv 19:57:17 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vubG from file:/tmp/.toxenv 19:57:17 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 19:57:17 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 19:57:17 + local 'pip_opts=--upgrade --quiet' 19:57:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 19:57:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 19:57:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 19:57:17 + [[ -n '' ]] 19:57:17 + [[ -n '' ]] 19:57:17 + lf-venv-pip-install /tmp/venv-vubG/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 19:57:17 + local venv_python=/tmp/venv-vubG/bin/python3 19:57:17 + shift 19:57:17 + local upstream=https://pypi.org/simple 19:57:17 + /tmp/venv-vubG/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 19:57:17 + return 0 19:57:17 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 19:57:17 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 19:57:17 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 19:57:17 + lf-venv-pip-install /tmp/venv-vubG/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 19:57:17 + local venv_python=/tmp/venv-vubG/bin/python3 19:57:17 + shift 19:57:17 + local upstream=https://pypi.org/simple 19:57:17 + /tmp/venv-vubG/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 19:57:19 + return 0 19:57:19 + type python3 19:57:19 + true 19:57:19 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-vubG/bin to PATH' 19:57:19 lf-activate-venv(): INFO: Adding /tmp/venv-vubG/bin to PATH 19:57:19 + PATH=/tmp/venv-vubG/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 19:57:19 + return 0 19:57:19 + [[ -d /opt/pyenv ]] 19:57:19 + echo '---> Setting up pyenv' 19:57:19 ---> Setting up pyenv 19:57:19 + export PYENV_ROOT=/opt/pyenv 19:57:19 + PYENV_ROOT=/opt/pyenv 19:57:19 + export PATH=/opt/pyenv/bin:/tmp/venv-vubG/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 19:57:19 + PATH=/opt/pyenv/bin:/tmp/venv-vubG/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 19:57:19 ++ pwd 19:57:19 + PYTHONPATH=/w/workspace/transportpce-tox-verify-titanium 19:57:19 + export PYTHONPATH 19:57:19 + export TOX_TESTENV_PASSENV=PYTHONPATH 19:57:19 + TOX_TESTENV_PASSENV=PYTHONPATH 19:57:19 + tox --version 19:57:19 4.61.2 from /tmp/venv-vubG/lib/python3.11/site-packages/tox/__init__.py 19:57:19 + PARALLEL=True 19:57:19 + TOX_OPTIONS_LIST= 19:57:19 + [[ -n '' ]] 19:57:19 + case ${PARALLEL,,} in 19:57:19 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 19:57:19 + tox --parallel auto --parallel-live 19:57:19 + tee -a /w/workspace/transportpce-tox-verify-titanium/archives/tox/tox.log 19:57:21 docs: install_deps> python -I -m pip install -r docs/requirements.txt 19:57:21 checkbashisms: freeze> python -m pip freeze --all 19:57:21 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 19:57:21 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:57:21 checkbashisms: pip==26.2.1,setuptools==84.0.0 19:57:21 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 19:57:21 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-titanium/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)' 19:57:21 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 19:57:22 checkbashisms: OK ✔ in 3.05 seconds 19:57:22 pre-commit: install_deps> python -I -m pip install pre-commit 19:57:25 pre-commit: freeze> python -m pip freeze --all 19:57:25 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.5,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.7,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.8 19:57:25 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 19:57:25 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-titanium/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)' 19:57:25 /usr/bin/cpan 19:57:25 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run --all-files --show-diff-on-failure 19:57:26 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 19:57:26 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 19:57:26 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 19:57:26 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 19:57:26 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 19:57:28 buildcontroller: freeze> python -m pip freeze --all 19:57:28 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 19:57:28 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 19:57:28 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh 19:57:28 + update-java-alternatives -l 19:57:28 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 19:57:28 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 19:57:28 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 19:57:28 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 19:57:28 update-alternatives: error: no alternatives for jaotc 19:57:28 update-alternatives: error: no alternatives for rmic 19:57:28 + java -version 19:57:28 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 19:57:28 + JAVA_VER=21 19:57:28 + echo 21 19:57:28 21 19:57:28 + javac -version 19:57:28 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 19:57:29 + JAVAC_VER=21 19:57:29 + echo 21 19:57:29 21 19:57:29 ok, java is 21 or newer 19:57:29 + [ 21 -ge 21 ] 19:57:29 + [ 21 -ge 21 ] 19:57:29 + echo ok, java is 21 or newer 19:57:29 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 19:57:29 2026-09-02 19:57:29 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] 19:57:29 + sudo mkdir -p /opt 19:57:29 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 19:57:29 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 19:57:29 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 19:57:29 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 19:57:29 + mvn --version 19:57:29 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 19:57:29 Maven home: /opt/maven 19:57:29 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 19:57:29 Default locale: en, platform encoding: UTF-8 19:57:29 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 19:57:29 NOTE: Picked up JDK_JAVA_OPTIONS: 19:57:29 --add-opens=java.base/java.io=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.lang=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.net=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.nio=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.nio.file=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.util=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.util.jar=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.util.stream=ALL-UNNAMED 19:57:29 --add-opens=java.base/java.util.zip=ALL-UNNAMED 19:57:29 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 19:57:29 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 19:57:29 -Xlog:disable 19:57:30 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 19:57:30 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 19:57:32 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 19:57:32 [INFO] Once installed this environment will be reused. 19:57:32 [INFO] This may take a few minutes... 19:57:37 docs: freeze> python -m pip freeze --all 19:57:37 docs-linkcheck: freeze> python -m pip freeze --all 19:57:37 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 19:57:37 [INFO] Once installed this environment will be reused. 19:57:37 [INFO] This may take a few minutes... 19:57:37 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.37.4,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==2.1.0,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.4.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 19:57:37 docs: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-titanium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-titanium/docs/_build/html 19:57:37 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.37.4,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==2.1.0,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.4.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 19:57:37 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-titanium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-titanium/docs/_build/linkcheck 19:57:40 docs: OK ✔ in 20.42 seconds 19:57:40 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 19:57:41 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): Could not find artifact org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 30, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 41, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 45, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 49, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 53, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 57, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 61, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 65, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openconfig-240119:jar is missing. @ line 69, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 73, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 28, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 74, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 78, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openconfig-240119:jar is missing. @ line 82, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 30, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 48, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 52, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 56, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 42, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openconfig-240119:jar is missing. @ line 74, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 63, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 67, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 71, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 75, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 79, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 83, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 87, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 91, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 95, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 28, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 50, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 42, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 70, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 32, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 164, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 33, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 44, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 48, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 52, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 33, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 51, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 55, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 59, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 63, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 67, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 71, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 75, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 79, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 83, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 42, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 119, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 29, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 40, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 44, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 35, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:odl-openroadm-models:xml:features is missing. @ line 60, column 17 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 34, column 19 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:odl-tapi-2.4.0-models:xml:features is missing. @ line 59, column 17 19:57:41 @ 19:57:41 [ERROR] The build could not read 14 projects -> [Help 1] 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-api:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/api/pom.xml) has 10 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): Could not find artifact org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 30, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 41, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 45, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 49, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 53, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 57, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 61, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 65, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openconfig-240119:jar is missing. @ line 69, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 73, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-common:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/common/pom.xml) has 11 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 28, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 74, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 78, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openconfig-240119:jar is missing. @ line 82, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:test-common:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/test-common/pom.xml) has 4 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 30, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 48, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 52, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 56, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-renderer:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/renderer/pom.xml) has 10 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 42, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openconfig-240119:jar is missing. @ line 74, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-networkmodel:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/networkmodel/pom.xml) has 10 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 63, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 67, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 71, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 75, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 79, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 83, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 87, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 91, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 95, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-inventory:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/inventory/pom.xml) has 3 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 28, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-olm:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/olm/pom.xml) has 9 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 42, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-pce:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/pce/pom.xml) has 8 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 32, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 54, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 58, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 62, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 66, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 70, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 164, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-servicehandler:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/servicehandler/pom.xml) has 4 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 33, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 44, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 48, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 52, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-tapi:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/tapi/pom.xml) has 10 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 33, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 51, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 55, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 59, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 63, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 67, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 71, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 75, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 79, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 83, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-nbinotifications:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/nbinotifications/pom.xml) has 5 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 31, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 42, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 46, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 50, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 119, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:transportpce-dmaap-client:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/dmaap-client/pom.xml) has 3 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 29, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 40, column 17 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 44, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:odl-transportpce:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/features/odl-transportpce/pom.xml) has 2 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 35, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:odl-openroadm-models:xml:features is missing. @ line 60, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] The project org.opendaylight.transportpce:odl-transportpce-tapi:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/features/odl-transportpce-tapi/pom.xml) has 2 errors 19:57:41 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-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 @ line 34, column 19 -> [Help 2] 19:57:41 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:odl-tapi-2.4.0-models:xml:features is missing. @ line 59, column 17 19:57:41 [ERROR] 19:57:41 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 19:57:41 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 19:57:41 [ERROR] 19:57:41 [ERROR] For more information about the errors and possible solutions, please read the following articles: 19:57:41 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 19:57:41 [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 19:57:41 buildcontroller: exit 1 (12.99 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh pid=2685 19:57:41 buildcontroller: FAIL ✖ in 21.54 seconds 19:57:41 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:57:41 docs-linkcheck: OK ✔ in 22.13 seconds 19:57:41 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:57:43 pylint: freeze> python -m pip freeze --all 19:57:43 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.7,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 19:57:43 pylint: commands[0] /w/workspace/transportpce-tox-verify-titanium/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}$' '{}' + 19:57:44 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 19:57:44 [INFO] Once installed this environment will be reused. 19:57:44 [INFO] This may take a few minutes... 19:57:47 [INFO] Installing environment for https://github.com/perltidy/perltidy. 19:57:47 [INFO] Once installed this environment will be reused. 19:57:47 [INFO] This may take a few minutes... 19:57:48 build_karaf_tests121: freeze> python -m pip freeze --all 19:57:48 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 19:57:48 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 19:57:49 build karaf in karaf121 with ./karaf121.env 19:57:49 build_karaf_tests221: freeze> python -m pip freeze --all 19:57:49 NOTE: Picked up JDK_JAVA_OPTIONS: 19:57:49 --add-opens=java.base/java.io=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.lang=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.net=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.nio=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.nio.file=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util.jar=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util.stream=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util.zip=ALL-UNNAMED 19:57:49 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 19:57:49 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 19:57:49 -Xlog:disable 19:57:49 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 19:57:49 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 19:57:49 build karaf in karaf221 with ./karaf221.env 19:57:49 NOTE: Picked up JDK_JAVA_OPTIONS: 19:57:49 --add-opens=java.base/java.io=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.lang=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.net=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.nio=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.nio.file=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util.jar=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util.stream=ALL-UNNAMED 19:57:49 --add-opens=java.base/java.util.zip=ALL-UNNAMED 19:57:49 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 19:57:49 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 19:57:49 -Xlog:disable 19:57:58 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 19:57:58 [ERROR] -> [Help 1] 19:57:58 [ERROR] 19:57:58 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 19:57:58 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 19:57:58 [ERROR] 19:57:58 [ERROR] For more information about the errors and possible solutions, please read the following articles: 19:57:58 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 19:57:58 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 19:57:58 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.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 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.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 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.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 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.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 19:57:58 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 19:57:58 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.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 19:57:58 [ERROR] -> [Help 1] 19:57:58 [ERROR] 19:57:58 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 19:57:58 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 19:57:58 [ERROR] 19:57:58 [ERROR] For more information about the errors and possible solutions, please read the following articles: 19:57:58 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 19:57:58 build_karaf_tests121: exit 127 (9.40 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3317 19:57:58 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 19:57:58 build_karaf_tests121: FAIL ✖ in 17.11 seconds 19:57:58 build_karaf_tests221: exit 127 (9.16 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3383 19:57:58 build_karaf_tests221: FAIL ✖ in 16.58 seconds 19:57:58 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:57:58 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:58:00 trim trailing whitespace.................................................Passed 19:58:00 Tabs remover.............................................................Passed 19:58:00 autopep8.................................................................Passed 19:58:04 perltidy.................................................................Passed 19:58:05 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run gitlint-ci --hook-stage manual 19:58:05 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 19:58:05 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 19:58:05 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 19:58:05 [INFO] Once installed this environment will be reused. 19:58:05 [INFO] This may take a few minutes... 19:58:06 build_karaf_tests71: freeze> python -m pip freeze --all 19:58:06 build_karaf_tests190: freeze> python -m pip freeze --all 19:58:07 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 19:58:07 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 19:58:07 build karaf in karaf71 with ./karaf71.env 19:58:07 NOTE: Picked up JDK_JAVA_OPTIONS: 19:58:07 --add-opens=java.base/java.io=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.lang=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.net=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.nio=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.nio.file=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util.jar=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util.stream=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util.zip=ALL-UNNAMED 19:58:07 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 19:58:07 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 19:58:07 -Xlog:disable 19:58:07 build_karaf_tests190: 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 19:58:07 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 19:58:07 build karaf in karafoc with ./karafoc.env 19:58:07 NOTE: Picked up JDK_JAVA_OPTIONS: 19:58:07 --add-opens=java.base/java.io=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.lang=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.net=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.nio=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.nio.file=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util.jar=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util.stream=ALL-UNNAMED 19:58:07 --add-opens=java.base/java.util.zip=ALL-UNNAMED 19:58:07 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 19:58:07 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 19:58:07 -Xlog:disable 19:58:08 19:58:08 ------------------------------------ 19:58:08 Your code has been rated at 10.00/10 19:58:08 19:58:12 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.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 19:58:12 [ERROR] -> [Help 1] 19:58:12 [ERROR] 19:58:12 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 19:58:12 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 19:58:12 [ERROR] 19:58:12 [ERROR] For more information about the errors and possible solutions, please read the following articles: 19:58:12 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 19:58:12 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 19:58:12 build_karaf_tests71: exit 127 (5.02 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3666 19:58:12 build_karaf_tests71: FAIL ✖ in 13.71 seconds 19:58:12 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:58:12 pylint: OK ✔ in 32.1 seconds 19:58:12 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:58:12 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:11.3.0-SNAPSHOT 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:11.3.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 19:58:12 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.0-SNAPSHOT (runtime) 19:58:12 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:11.3.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 19:58:12 [ERROR] -> [Help 1] 19:58:12 [ERROR] 19:58:12 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 19:58:12 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 19:58:12 [ERROR] 19:58:12 [ERROR] For more information about the errors and possible solutions, please read the following articles: 19:58:12 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 19:58:12 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 19:58:12 build_karaf_tests190: exit 127 (5.68 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3728 19:58:13 build_karaf_tests190: FAIL ✖ in 14.47 seconds 19:58:13 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 19:58:13 gitlint..................................................................Passed 19:58:18 pre-commit: OK ✔ in 50.67 seconds 19:58:18 buildlighty: freeze> python -m pip freeze --all 19:58:18 sims: freeze> python -m pip freeze --all 19:58:18 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 19:58:18 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh 19:58:18 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 19:58:18 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 19:58:18 sims: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./install_lightynode.sh 19:58:18 Using lighynode version 20.1.0.5 19:58:18 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 19:58:21 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 19:58:21 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): Could not find artifact org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 33, column 19 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 51, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 55, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 59, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 63, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 67, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 71, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 75, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 79, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 83, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 87, column 17 19:58:21 @ 19:58:21 [ERROR] The build could not read 1 project -> [Help 1] 19:58:21 [ERROR] 19:58:21 [ERROR] The project io.lighty.controllers:tpce:11.3.0-SNAPSHOT (/w/workspace/transportpce-tox-verify-titanium/lighty/pom.xml) has 11 errors 19:58:21 [ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT (absent): Could not find artifact org.opendaylight.transportpce.models:transportpce-models-artifacts:pom:22.3.2-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) @ line 33, column 19 -> [Help 2] 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-1.2.1:jar is missing. @ line 51, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-2.2.1:jar is missing. @ line 55, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-7.1.0:jar is missing. @ line 59, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-13.1.1:jar is missing. @ line 63, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-1.2.1:jar is missing. @ line 67, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-2.2.1:jar is missing. @ line 71, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-7.1.0:jar is missing. @ line 75, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-network-13.1.1:jar is missing. @ line 79, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-service-13.1.1:jar is missing. @ line 83, column 17 19:58:21 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:tapi-2.4.0:jar is missing. @ line 87, column 17 19:58:21 [ERROR] 19:58:21 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 19:58:21 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 19:58:21 [ERROR] 19:58:21 [ERROR] For more information about the errors and possible solutions, please read the following articles: 19:58:21 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 19:58:21 [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 19:58:21 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 19:58:21 buildlighty: exit 9 (2.55 seconds) /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh pid=3878 19:59:07 buildlighty: FAIL ✖ in 9.24 seconds 19:59:07 sims: OK ✔ in 9.37 seconds 19:59:07 testsPCE: freeze> python -m pip freeze --all 19:59:07 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.64.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 19:59:07 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce 19:59:07 pytest -q transportpce_tests/pce/test01_pce.py 20:01:08 EEEEEEEEEEEEEEEEEEEE [100%] 20:01:11 ==================================== ERRORS ==================================== 20:01:11 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 20:01:11 20:01:11 cls = 20:01:11 20:01:11 @classmethod 20:01:11 def setUpClass(cls): 20:01:11 # pylint: disable=bare-except 20:01:11 sample_files_parsed = False 20:01:11 time.sleep(20) 20:01:11 try: 20:01:11 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:01:11 "..", "..", "sample_configs", "honeynode-topo.json") 20:01:11 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 20:01:11 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 20:01:11 20:01:11 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:01:11 "..", "..", "sample_configs", "NW-simple-topology.json") 20:01:11 20:01:11 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 20:01:11 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 20:01:11 20:01:11 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:01:11 "..", "..", "sample_configs", "NW-for-test-5-4.json") 20:01:11 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 20:01:11 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 20:01:11 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 20:01:11 "..", "..", "sample_configs", "pce_portmapping_121.json") 20:01:11 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 20:01:11 cls.port_mapping_data = port_mapping.read() 20:01:11 sample_files_parsed = True 20:01:11 except PermissionError as err: 20:01:11 print("Permission Error when trying to read sample files\n", err) 20:01:11 sys.exit(2) 20:01:11 except FileNotFoundError as err: 20:01:11 print("File Not found Error when trying to read sample files\n", err) 20:01:11 sys.exit(2) 20:01:11 except: 20:01:11 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 20:01:11 sys.exit(2) 20:01:11 finally: 20:01:11 if sample_files_parsed: 20:01:11 print("sample files content loaded") 20:01:11 20:01:11 > cls.processes = test_utils.start_tpce() 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 20:01:11 transportpce_tests/pce/test01_pce.py:93: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 def start_tpce(): 20:01:11 if 'NO_ODL_STARTUP' in os.environ: 20:01:11 print('No OpenDaylight instance to start!') 20:01:11 return [] 20:01:11 print('starting OpenDaylight...') 20:01:11 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:01:11 process = start_lighty() 20:01:11 else: 20:01:11 process = start_karaf() 20:01:11 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:01:11 print('OpenDaylight started !') 20:01:11 else: 20:01:11 print('OpenDaylight failed to start !') 20:01:11 shutdown_process(process) 20:01:11 for pid in process_list: 20:01:11 shutdown_process(pid) 20:01:11 > sys.exit(1) 20:01:11 E SystemExit: 1 20:01:11 20:01:11 transportpce_tests/common/test_utils.py:232: SystemExit 20:01:11 ---------------------------- Captured stdout setup ----------------------------- 20:01:11 sample files content loaded 20:01:11 starting OpenDaylight... 20:01:11 starting KARAF (karaf) TransportPCE build... 20:01:11 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:01:11 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171a32e0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b74c0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f0817173f60> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171a32e0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f081967d120> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171a32e0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b5d00> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b7a60> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f0817173f60> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b7b00> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b7380> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f0817173f60> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b6fc0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b5da0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b7d80> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b7b00> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f0817173e20> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f0817173ce0> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 20:01:11 20:01:11 cls = 20:01:11 func = . at 0x7f08171b7c40> 20:01:11 when = 'setup' 20:01:11 reraise = (, ) 20:01:11 20:01:11 @classmethod 20:01:11 def from_call( 20:01:11 cls, 20:01:11 func: Callable[[], TResult], 20:01:11 when: Literal["collect", "setup", "call", "teardown"], 20:01:11 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:01:11 ) -> CallInfo[TResult]: 20:01:11 """Call func, wrapping the result in a CallInfo. 20:01:11 20:01:11 :param func: 20:01:11 The function to call. Called without arguments. 20:01:11 :type func: Callable[[], _pytest.runner.TResult] 20:01:11 :param when: 20:01:11 The phase in which the function is called. 20:01:11 :param reraise: 20:01:11 Exception or exceptions that shall propagate if raised by the 20:01:11 function, instead of being wrapped in the CallInfo. 20:01:11 """ 20:01:11 excinfo = None 20:01:11 instant = timing.Instant() 20:01:11 try: 20:01:11 > result: TResult | None = func() 20:01:11 ^^^^^^ 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:01:11 lambda: runtest_hook(item=item, **kwds), 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:01:11 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:01:11 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:01:11 yield 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:01:11 return (yield) 20:01:11 ^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:01:11 item.session._setupstate.setup(item) 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:01:11 col.setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:01:11 super().setup() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:01:11 self._request._fillfixtures() 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:01:11 item.funcargs[argname] = self.getfixturevalue(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:01:11 fixturedef = self._get_active_fixturedef(argname) 20:01:11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:01:11 fixturedef.execute(request=subrequest) 20:01:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:01:11 20:01:11 self = 20:01:11 request = > 20:01:11 20:01:11 def execute(self, request: SubRequest) -> FixtureValue: 20:01:11 """Return the value of this fixture, executing it if not cached.""" 20:01:11 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:01:11 # This needs to be done before checking if we have a cached value, since 20:01:11 # if a dependent fixture has their cache invalidated, e.g. due to 20:01:11 # parametrization, they finalize themselves and fixtures depending on it 20:01:11 # (which will likely include this fixture) setting `self.cached_result = None`. 20:01:11 # See #4871 20:01:11 requested_fixtures_that_should_finalize_us = [] 20:01:11 for argname in self.argnames: 20:01:11 fixturedef = request._get_active_fixturedef(argname) 20:01:11 # Saves requested fixtures in a list so we later can add our finalizer 20:01:11 # to them, ensuring that if a requested fixture gets torn down we get torn 20:01:11 # down first. This is generally handled by SetupState, but still currently 20:01:11 # needed when this fixture is not parametrized but depends on a parametrized 20:01:11 # fixture. 20:01:11 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:01:11 20:01:11 # Check for (and return) cached value/exception. 20:01:11 if self.cached_result is not None: 20:01:11 request_cache_key = self.cache_key(request) 20:01:11 cache_key = self.cached_result[1] 20:01:11 try: 20:01:11 # Attempt to make a normal == check: this might fail for objects 20:01:11 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:01:11 cache_hit = bool(request_cache_key == cache_key) 20:01:11 except (ValueError, RuntimeError): 20:01:11 # If the comparison raises, use 'is' as fallback. 20:01:11 cache_hit = request_cache_key is cache_key 20:01:11 20:01:11 if cache_hit: 20:01:11 if self.cached_result[2] is not None: 20:01:11 exc, exc_tb = self.cached_result[2] 20:01:11 raise exc.with_traceback(exc_tb) 20:01:11 else: 20:01:11 return self.cached_result[0] 20:01:11 # We have a previous but differently parametrized fixture instance 20:01:11 # so we need to tear it down before creating a new one. 20:01:11 self.finish(request) 20:01:11 assert self.cached_result is None 20:01:11 20:01:11 # Add finalizer to requested fixtures we saved previously. 20:01:11 # We make sure to do this after checking for cached value to avoid 20:01:11 # adding our finalizer multiple times. (#12135) 20:01:11 finalizer = functools.partial(self.finish, request=request) 20:01:11 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:01:11 parent_fixture.addfinalizer(finalizer) 20:01:11 20:01:11 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:01:11 # which is executed last. 20:01:11 > assert not self._finalizers 20:01:11 ^^^^^^^^^^^^^^^^^^^^ 20:01:11 E AssertionError 20:01:11 20:01:11 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:01:11 =========================== short test summary info ============================ 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 20:01:11 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 20:01:11 20 errors in 123.82s (0:02:03) 20:01:11 testsPCE: exit 1 (124.12 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce pid=3985 20:01:12 testsPCE: FAIL ✖ in 2 minutes 58.91 seconds 20:01:12 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 20:01:12 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 20:01:12 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 20:01:20 tests121: freeze> python -m pip freeze --all 20:01:20 tests_tapi: freeze> python -m pip freeze --all 20:01:20 tests190: freeze> python -m pip freeze --all 20:01:20 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 20:01:20 tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 20:01:20 using environment variables from ./karaf121.env 20:01:20 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 20:01:20 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 20:01:20 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi 20:01:20 using environment variables from ./karaf221.env 20:01:20 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 20:01:20 tests190: 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 20:01:20 tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc 20:01:20 using environment variables from ./karafoc.env 20:01:20 pytest -q transportpce_tests/oc/test01_portmapping.py 20:03:00 EEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:03:02 ==================================== ERRORS ==================================== 20:03:02 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 20:03:02 20:03:02 cls = 20:03:02 20:03:02 @classmethod 20:03:02 def setUpClass(cls): 20:03:02 > cls.processes = test_utils.start_tpce() 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 20:03:02 transportpce_tests/oc/test01_portmapping.py:29: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 def start_tpce(): 20:03:02 if 'NO_ODL_STARTUP' in os.environ: 20:03:02 print('No OpenDaylight instance to start!') 20:03:02 return [] 20:03:02 print('starting OpenDaylight...') 20:03:02 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:03:02 process = start_lighty() 20:03:02 else: 20:03:02 process = start_karaf() 20:03:02 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:03:02 print('OpenDaylight started !') 20:03:02 else: 20:03:02 print('OpenDaylight failed to start !') 20:03:02 shutdown_process(process) 20:03:02 for pid in process_list: 20:03:02 shutdown_process(pid) 20:03:02 > sys.exit(1) 20:03:02 E SystemExit: 1 20:03:02 20:03:02 transportpce_tests/common/test_utils.py:232: SystemExit 20:03:02 ---------------------------- Captured stdout setup ----------------------------- 20:03:02 starting OpenDaylight... 20:03:02 starting KARAF (karafoc) TransportPCE build... 20:03:02 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e7cfe0> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e9f6a0> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e63240> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b8862afc0> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e9d3a0> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e7d120> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b89578400> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e63240> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 20:03:02 20:03:02 cls = 20:03:02 func = . at 0x7f3b86e7d120> 20:03:02 when = 'setup' 20:03:02 reraise = (, ) 20:03:02 20:03:02 @classmethod 20:03:02 def from_call( 20:03:02 cls, 20:03:02 func: Callable[[], TResult], 20:03:02 when: Literal["collect", "setup", "call", "teardown"], 20:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:02 ) -> CallInfo[TResult]: 20:03:02 """Call func, wrapping the result in a CallInfo. 20:03:02 20:03:02 :param func: 20:03:02 The function to call. Called without arguments. 20:03:02 :type func: Callable[[], _pytest.runner.TResult] 20:03:02 :param when: 20:03:02 The phase in which the function is called. 20:03:02 :param reraise: 20:03:02 Exception or exceptions that shall propagate if raised by the 20:03:02 function, instead of being wrapped in the CallInfo. 20:03:02 """ 20:03:02 excinfo = None 20:03:02 instant = timing.Instant() 20:03:02 try: 20:03:02 > result: TResult | None = func() 20:03:02 ^^^^^^ 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:02 lambda: runtest_hook(item=item, **kwds), 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:02 yield 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:02 return (yield) 20:03:02 ^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:02 item.session._setupstate.setup(item) 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:02 col.setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:02 super().setup() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:02 self._request._fillfixtures() 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:02 fixturedef = self._get_active_fixturedef(argname) 20:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:02 fixturedef.execute(request=subrequest) 20:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:02 20:03:02 self = 20:03:02 request = > 20:03:02 20:03:02 def execute(self, request: SubRequest) -> FixtureValue: 20:03:02 """Return the value of this fixture, executing it if not cached.""" 20:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:02 # This needs to be done before checking if we have a cached value, since 20:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:02 # parametrization, they finalize themselves and fixtures depending on it 20:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:02 # See #4871 20:03:02 requested_fixtures_that_should_finalize_us = [] 20:03:02 for argname in self.argnames: 20:03:02 fixturedef = request._get_active_fixturedef(argname) 20:03:02 # Saves requested fixtures in a list so we later can add our finalizer 20:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:02 # down first. This is generally handled by SetupState, but still currently 20:03:02 # needed when this fixture is not parametrized but depends on a parametrized 20:03:02 # fixture. 20:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:02 20:03:02 # Check for (and return) cached value/exception. 20:03:02 if self.cached_result is not None: 20:03:02 request_cache_key = self.cache_key(request) 20:03:02 cache_key = self.cached_result[1] 20:03:02 try: 20:03:02 # Attempt to make a normal == check: this might fail for objects 20:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:02 cache_hit = bool(request_cache_key == cache_key) 20:03:02 except (ValueError, RuntimeError): 20:03:02 # If the comparison raises, use 'is' as fallback. 20:03:02 cache_hit = request_cache_key is cache_key 20:03:02 20:03:02 if cache_hit: 20:03:02 if self.cached_result[2] is not None: 20:03:02 exc, exc_tb = self.cached_result[2] 20:03:02 raise exc.with_traceback(exc_tb) 20:03:02 else: 20:03:02 return self.cached_result[0] 20:03:02 # We have a previous but differently parametrized fixture instance 20:03:02 # so we need to tear it down before creating a new one. 20:03:02 self.finish(request) 20:03:02 assert self.cached_result is None 20:03:02 20:03:02 # Add finalizer to requested fixtures we saved previously. 20:03:02 # We make sure to do this after checking for cached value to avoid 20:03:02 # adding our finalizer multiple times. (#12135) 20:03:02 finalizer = functools.partial(self.finish, request=request) 20:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:02 parent_fixture.addfinalizer(finalizer) 20:03:02 20:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:02 # which is executed last. 20:03:02 > assert not self._finalizers 20:03:02 ^^^^^^^^^^^^^^^^^^^^ 20:03:02 E AssertionError 20:03:02 20:03:02 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:02 =========================== short test summary info ============================ 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 20:03:02 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 20:03:02 10 errors in 101.97s (0:01:41) 20:03:02 Etests190: exit 1 (102.22 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc pid=4114 20:03:02 EEtests190: FAIL ✖ in 1 minute 50.76 seconds 20:03:02 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 20:03:02 EEEEEEEEEEEEEEEEEEEE [100%] 20:03:04 ==================================== ERRORS ==================================== 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 20:03:04 20:03:04 cls = 20:03:04 20:03:04 @classmethod 20:03:04 def setUpClass(cls): 20:03:04 > cls.processes = test_utils.start_tpce() 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 20:03:04 transportpce_tests/1.2.1/test01_portmapping.py:33: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 def start_tpce(): 20:03:04 if 'NO_ODL_STARTUP' in os.environ: 20:03:04 print('No OpenDaylight instance to start!') 20:03:04 return [] 20:03:04 print('starting OpenDaylight...') 20:03:04 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:03:04 process = start_lighty() 20:03:04 else: 20:03:04 process = start_karaf() 20:03:04 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:03:04 print('OpenDaylight started !') 20:03:04 else: 20:03:04 print('OpenDaylight failed to start !') 20:03:04 shutdown_process(process) 20:03:04 for pid in process_list: 20:03:04 shutdown_process(pid) 20:03:04 > sys.exit(1) 20:03:04 E SystemExit: 1 20:03:04 20:03:04 transportpce_tests/common/test_utils.py:232: SystemExit 20:03:04 ---------------------------- Captured stdout setup ----------------------------- 20:03:04 starting OpenDaylight... 20:03:04 starting KARAF (karaf121) TransportPCE build... 20:03:04 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:03:04 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9760> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedb560> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223f033740> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223d673560> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea93a0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9580> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedb600> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223beda8e0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedade0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedb600> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedaf20> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9580> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedade0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bedaf20> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9800> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9bc0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9da0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223beda840> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223baadd00> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 20:03:04 20:03:04 cls = 20:03:04 func = . at 0x7f223bea9bc0> 20:03:04 when = 'setup' 20:03:04 reraise = (, ) 20:03:04 20:03:04 @classmethod 20:03:04 def from_call( 20:03:04 cls, 20:03:04 func: Callable[[], TResult], 20:03:04 when: Literal["collect", "setup", "call", "teardown"], 20:03:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:04 ) -> CallInfo[TResult]: 20:03:04 """Call func, wrapping the result in a CallInfo. 20:03:04 20:03:04 :param func: 20:03:04 The function to call. Called without arguments. 20:03:04 :type func: Callable[[], _pytest.runner.TResult] 20:03:04 :param when: 20:03:04 The phase in which the function is called. 20:03:04 :param reraise: 20:03:04 Exception or exceptions that shall propagate if raised by the 20:03:04 function, instead of being wrapped in the CallInfo. 20:03:04 """ 20:03:04 excinfo = None 20:03:04 instant = timing.Instant() 20:03:04 try: 20:03:04 > result: TResult | None = func() 20:03:04 ^^^^^^ 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:04 lambda: runtest_hook(item=item, **kwds), 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:04 yield 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:04 return (yield) 20:03:04 ^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:04 item.session._setupstate.setup(item) 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:04 col.setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:04 super().setup() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:04 self._request._fillfixtures() 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:04 fixturedef = self._get_active_fixturedef(argname) 20:03:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:04 fixturedef.execute(request=subrequest) 20:03:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:04 20:03:04 self = 20:03:04 request = > 20:03:04 20:03:04 def execute(self, request: SubRequest) -> FixtureValue: 20:03:04 """Return the value of this fixture, executing it if not cached.""" 20:03:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:04 # This needs to be done before checking if we have a cached value, since 20:03:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:04 # parametrization, they finalize themselves and fixtures depending on it 20:03:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:04 # See #4871 20:03:04 requested_fixtures_that_should_finalize_us = [] 20:03:04 for argname in self.argnames: 20:03:04 fixturedef = request._get_active_fixturedef(argname) 20:03:04 # Saves requested fixtures in a list so we later can add our finalizer 20:03:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:04 # down first. This is generally handled by SetupState, but still currently 20:03:04 # needed when this fixture is not parametrized but depends on a parametrized 20:03:04 # fixture. 20:03:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:04 20:03:04 # Check for (and return) cached value/exception. 20:03:04 if self.cached_result is not None: 20:03:04 request_cache_key = self.cache_key(request) 20:03:04 cache_key = self.cached_result[1] 20:03:04 try: 20:03:04 # Attempt to make a normal == check: this might fail for objects 20:03:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:04 cache_hit = bool(request_cache_key == cache_key) 20:03:04 except (ValueError, RuntimeError): 20:03:04 E # If the comparison raises, use 'is' as fallback. 20:03:04 cache_hit = request_cache_key is cache_key 20:03:04 20:03:04 if cache_hit: 20:03:04 if self.cached_result[2] is not None: 20:03:04 exc, exc_tb = self.cached_result[2] 20:03:04 raise exc.with_traceback(exc_tb) 20:03:04 else: 20:03:04 return self.cached_result[0] 20:03:04 # We have a previous but differently parametrized fixture instance 20:03:04 # so we need to tear it down before creating a new one. 20:03:04 self.finish(request) 20:03:04 assert self.cached_result is None 20:03:04 20:03:04 # Add finalizer to requested fixtures we saved previously. 20:03:04 # We make sure to do this after checking for cached value to avoid 20:03:04 # adding our finalizer multiple times. (#12135) 20:03:04 finalizer = functools.partial(self.finish, request=request) 20:03:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:04 parent_fixture.addfinalizer(finalizer) 20:03:04 20:03:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:04 # which is executed last. 20:03:04 > assert not self._finalizers 20:03:04 ^^^^^^^^^^^^^^^^^^^^ 20:03:04 E AssertionError 20:03:04 20:03:04 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:04 =========================== short test summary info ============================ 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 20:03:04 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 20:03:04 21 errors in 104.05s (0:01:44) 20:03:04 tests121: exit 1 (104.36 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 pid=4091 20:03:04 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:03:10 ==================================== ERRORS ==================================== 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 20:03:10 20:03:10 cls = 20:03:10 20:03:10 @classmethod 20:03:10 def setUpClass(cls): 20:03:10 cls.init_failed = False 20:03:10 os.environ['JAVA_MIN_MEM'] = '1024M' 20:03:10 os.environ['JAVA_MAX_MEM'] = '4096M' 20:03:10 > cls.processes = test_utils.start_tpce() 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 20:03:10 transportpce_tests/tapi/test01_abstracted_topology.py:148: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 def start_tpce(): 20:03:10 if 'NO_ODL_STARTUP' in os.environ: 20:03:10 print('No OpenDaylight instance to start!') 20:03:10 return [] 20:03:10 print('starting OpenDaylight...') 20:03:10 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:03:10 process = start_lighty() 20:03:10 else: 20:03:10 process = start_karaf() 20:03:10 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:03:10 print('OpenDaylight started !') 20:03:10 else: 20:03:10 print('OpenDaylight failed to start !') 20:03:10 shutdown_process(process) 20:03:10 for pid in process_list: 20:03:10 shutdown_process(pid) 20:03:10 > sys.exit(1) 20:03:10 E SystemExit: 1 20:03:10 20:03:10 transportpce_tests/common/test_utils.py:232: SystemExit 20:03:10 ---------------------------- Captured stdout setup ----------------------------- 20:03:10 starting OpenDaylight... 20:03:10 starting KARAF (karaf221) TransportPCE build... 20:03:10 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d609bc0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d6534c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854edd3380> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fd0b740> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d653560> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d653880> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d609bc0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d609bc0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652e80> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652660> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652d40> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652660> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fda80> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d608e00> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fdc60> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d608e00> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fdf80> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854fcbd1c0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fd260> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fd3a0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fd120> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fe480> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fc900> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fea20> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fc720> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fcea0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fda80> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fd260> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fe020> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2fd4e0> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d652700> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 20:03:10 20:03:10 cls = 20:03:10 func = . at 0x7f854d2ff560> 20:03:10 when = 'setup' 20:03:10 reraise = (, ) 20:03:10 20:03:10 @classmethod 20:03:10 def from_call( 20:03:10 cls, 20:03:10 func: Callable[[], TResult], 20:03:10 when: Literal["collect", "setup", "call", "teardown"], 20:03:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:03:10 ) -> CallInfo[TResult]: 20:03:10 """Call func, wrapping the result in a CallInfo. 20:03:10 20:03:10 :param func: 20:03:10 The function to call. Called without arguments. 20:03:10 :type func: Callable[[], _pytest.runner.TResult] 20:03:10 :param when: 20:03:10 The phase in which the function is called. 20:03:10 :param reraise: 20:03:10 Exception or exceptions that shall propagate if raised by the 20:03:10 function, instead of being wrapped in the CallInfo. 20:03:10 """ 20:03:10 excinfo = None 20:03:10 instant = timing.Instant() 20:03:10 try: 20:03:10 > result: TResult | None = func() 20:03:10 ^^^^^^ 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:03:10 lambda: runtest_hook(item=item, **kwds), 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:03:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:03:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:03:10 yield 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:03:10 return (yield) 20:03:10 ^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:03:10 item.session._setupstate.setup(item) 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:03:10 col.setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:03:10 super().setup() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:03:10 self._request._fillfixtures() 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:03:10 item.funcargs[argname] = self.getfixturevalue(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:03:10 fixturedef = self._get_active_fixturedef(argname) 20:03:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:03:10 fixturedef.execute(request=subrequest) 20:03:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:03:10 20:03:10 self = 20:03:10 request = > 20:03:10 20:03:10 def execute(self, request: SubRequest) -> FixtureValue: 20:03:10 """Return the value of this fixture, executing it if not cached.""" 20:03:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:03:10 # This needs to be done before checking if we have a cached value, since 20:03:10 # if a dependent fixture has their cache invalidated, e.g. due to 20:03:10 # parametrization, they finalize themselves and fixtures depending on it 20:03:10 # (which will likely include this fixture) setting `self.cached_result = None`. 20:03:10 # See #4871 20:03:10 requested_fixtures_that_should_finalize_us = [] 20:03:10 for argname in self.argnames: 20:03:10 fixturedef = request._get_active_fixturedef(argname) 20:03:10 # Saves requested fixtures in a list so we later can add our finalizer 20:03:10 # to them, ensuring that if a requested fixture gets torn down we get torn 20:03:10 # down first. This is generally handled by SetupState, but still currently 20:03:10 # needed when this fixture is not parametrized but depends on a parametrized 20:03:10 # fixture. 20:03:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:03:10 20:03:10 # Check for (and return) cached value/exception. 20:03:10 if self.cached_result is not None: 20:03:10 request_cache_key = self.cache_key(request) 20:03:10 cache_key = self.cached_result[1] 20:03:10 try: 20:03:10 # Attempt to make a normal == check: this might fail for objects 20:03:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:03:10 cache_hit = bool(request_cache_key == cache_key) 20:03:10 except (ValueError, RuntimeError): 20:03:10 # If the comparison raises, use 'is' as fallback. 20:03:10 cache_hit = request_cache_key is cache_key 20:03:10 20:03:10 if cache_hit: 20:03:10 if self.cached_result[2] is not None: 20:03:10 exc, exc_tb = self.cached_result[2] 20:03:10 raise exc.with_traceback(exc_tb) 20:03:10 else: 20:03:10 return self.cached_result[0] 20:03:10 # We have a previous but differently parametrized fixture instance 20:03:10 # so we need to tear it down before creating a new one. 20:03:10 self.finish(request) 20:03:10 assert self.cached_result is None 20:03:10 20:03:10 # Add finalizer to requested fixtures we saved previously. 20:03:10 # We make sure to do this after checking for cached value to avoid 20:03:10 # adding our finalizer multiple times. (#12135) 20:03:10 finalizer = functools.partial(self.finish, request=request) 20:03:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:03:10 parent_fixture.addfinalizer(finalizer) 20:03:10 20:03:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:03:10 # which is executed last. 20:03:10 > assert not self._finalizers 20:03:10 ^^^^^^^^^^^^^^^^^^^^ 20:03:10 E AssertionError 20:03:10 20:03:10 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:03:10 =========================== short test summary info ============================ 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 20:03:10 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 20:03:10 51 errors in 109.72s (0:01:49) 20:03:10 tests121: FAIL ✖ in 1 minute 52.82 seconds 20:03:10 tests_tapi: exit 1 (109.99 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi pid=4102 20:03:10 tests_tapi: FAIL ✖ in 1 minute 58.46 seconds 20:03:10 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 20:03:11 tests71: freeze> python -m pip freeze --all 20:03:11 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 20:03:11 tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 20:03:11 using environment variables from ./karaf71.env 20:03:11 pytest -q transportpce_tests/7.1/test01_portmapping.py 20:03:17 tests221: freeze> python -m pip freeze --all 20:03:17 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 20:03:17 tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 20:03:17 using environment variables from ./karaf221.env 20:03:17 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 20:04:51 EEEEEEEEEEEE [100%] 20:04:53 ==================================== ERRORS ==================================== 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 20:04:53 20:04:53 cls = 20:04:53 20:04:53 @classmethod 20:04:53 def setUpClass(cls): 20:04:53 > cls.processes = test_utils.start_tpce() 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 20:04:53 transportpce_tests/7.1/test01_portmapping.py:32: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 def start_tpce(): 20:04:53 if 'NO_ODL_STARTUP' in os.environ: 20:04:53 print('No OpenDaylight instance to start!') 20:04:53 return [] 20:04:53 print('starting OpenDaylight...') 20:04:53 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:04:53 process = start_lighty() 20:04:53 else: 20:04:53 process = start_karaf() 20:04:53 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:04:53 print('OpenDaylight started !') 20:04:53 else: 20:04:53 print('OpenDaylight failed to start !') 20:04:53 shutdown_process(process) 20:04:53 for pid in process_list: 20:04:53 shutdown_process(pid) 20:04:53 > sys.exit(1) 20:04:53 E SystemExit: 1 20:04:53 20:04:53 transportpce_tests/common/test_utils.py:232: SystemExit 20:04:53 ---------------------------- Captured stdout setup ----------------------------- 20:04:53 starting OpenDaylight... 20:04:53 starting KARAF (karaf71) TransportPCE build... 20:04:53 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e02e700> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e053740> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e5073cea0> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e02e700> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4f7f7e20> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e02e700> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e053600> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e051d00> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e053920> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e0537e0> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 20:04:53 20:04:53 cls = 20:04:53 func = . at 0x7f6e4e02e700> 20:04:53 when = 'setup' 20:04:53 reraise = (, ) 20:04:53 20:04:53 @classmethod 20:04:53 def from_call( 20:04:53 cls, 20:04:53 func: Callable[[], TResult], 20:04:53 when: Literal["collect", "setup", "call", "teardown"], 20:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:04:53 ) -> CallInfo[TResult]: 20:04:53 """Call func, wrapping the result in a CallInfo. 20:04:53 20:04:53 :param func: 20:04:53 The function to call. Called without arguments. 20:04:53 :type func: Callable[[], _pytest.runner.TResult] 20:04:53 :param when: 20:04:53 The phase in which the function is called. 20:04:53 :param reraise: 20:04:53 Exception or exceptions that shall propagate if raised by the 20:04:53 function, instead of being wrapped in the CallInfo. 20:04:53 """ 20:04:53 excinfo = None 20:04:53 instant = timing.Instant() 20:04:53 try: 20:04:53 > result: TResult | None = func() 20:04:53 ^^^^^^ 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:04:53 lambda: runtest_hook(item=item, **kwds), 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:04:53 yield 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:04:53 return (yield) 20:04:53 ^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:04:53 item.session._setupstate.setup(item) 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:04:53 col.setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:04:53 super().setup() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:04:53 self._request._fillfixtures() 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:04:53 fixturedef = self._get_active_fixturedef(argname) 20:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:04:53 fixturedef.execute(request=subrequest) 20:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:04:53 20:04:53 self = 20:04:53 request = > 20:04:53 20:04:53 def execute(self, request: SubRequest) -> FixtureValue: 20:04:53 """Return the value of this fixture, executing it if not cached.""" 20:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:04:53 # This needs to be done before checking if we have a cached value, since 20:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 20:04:53 # parametrization, they finalize themselves and fixtures depending on it 20:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 20:04:53 # See #4871 20:04:53 requested_fixtures_that_should_finalize_us = [] 20:04:53 for argname in self.argnames: 20:04:53 fixturedef = request._get_active_fixturedef(argname) 20:04:53 # Saves requested fixtures in a list so we later can add our finalizer 20:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 20:04:53 # down first. This is generally handled by SetupState, but still currently 20:04:53 # needed when this fixture is not parametrized but depends on a parametrized 20:04:53 # fixture. 20:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:04:53 20:04:53 # Check for (and return) cached value/exception. 20:04:53 if self.cached_result is not None: 20:04:53 request_cache_key = self.cache_key(request) 20:04:53 cache_key = self.cached_result[1] 20:04:53 try: 20:04:53 # Attempt to make a normal == check: this might fail for objects 20:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:04:53 cache_hit = bool(request_cache_key == cache_key) 20:04:53 except (ValueError, RuntimeError): 20:04:53 # If the comparison raises, use 'is' as fallback. 20:04:53 cache_hit = request_cache_key is cache_key 20:04:53 20:04:53 if cache_hit: 20:04:53 if self.cached_result[2] is not None: 20:04:53 exc, exc_tb = self.cached_result[2] 20:04:53 raise exc.with_traceback(exc_tb) 20:04:53 else: 20:04:53 return self.cached_result[0] 20:04:53 # We have a previous but differently parametrized fixture instance 20:04:53 # so we need to tear it down before creating a new one. 20:04:53 self.finish(request) 20:04:53 assert self.cached_result is None 20:04:53 20:04:53 # Add finalizer to requested fixtures we saved previously. 20:04:53 # We make sure to do this after checking for cached value to avoid 20:04:53 # adding our finalizer multiple times. (#12135) 20:04:53 finalizer = functools.partial(self.finish, request=request) 20:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:04:53 parent_fixture.addfinalizer(finalizer) 20:04:53 20:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:04:53 # which is executed last. 20:04:53 > assert not self._finalizers 20:04:53 ^^^^^^^^^^^^^^^^^^^^ 20:04:53 E AssertionError 20:04:53 20:04:53 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:04:53 =========================== short test summary info ============================ 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 20:04:53 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 20:04:53 12 errors in 102.26s (0:01:42) 20:04:53 tests71: exit 1 (102.53 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 pid=4297 20:04:58 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:05:04 ==================================== ERRORS ==================================== 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 20:05:04 20:05:04 cls = 20:05:04 20:05:04 @classmethod 20:05:04 def setUpClass(cls): 20:05:04 > cls.processes = test_utils.start_tpce() 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 20:05:04 transportpce_tests/2.2.1/test01_portmapping.py:33: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 def start_tpce(): 20:05:04 if 'NO_ODL_STARTUP' in os.environ: 20:05:04 print('No OpenDaylight instance to start!') 20:05:04 return [] 20:05:04 print('starting OpenDaylight...') 20:05:04 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:05:04 process = start_lighty() 20:05:04 else: 20:05:04 process = start_karaf() 20:05:04 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:05:04 print('OpenDaylight started !') 20:05:04 else: 20:05:04 print('OpenDaylight failed to start !') 20:05:04 shutdown_process(process) 20:05:04 for pid in process_list: 20:05:04 shutdown_process(pid) 20:05:04 > sys.exit(1) 20:05:04 E SystemExit: 1 20:05:04 20:05:04 transportpce_tests/common/test_utils.py:232: SystemExit 20:05:04 ---------------------------- Captured stdout setup ----------------------------- 20:05:04 starting OpenDaylight... 20:05:04 starting KARAF (karaf221) TransportPCE build... 20:05:04 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:05:04 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77153560> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76a6fec0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c78206a20> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c7914c4a0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acaca0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76a6fec0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c78206a20> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76ac8cc0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c771536a0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76a6fec0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76ac8360> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c771536a0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acb9c0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acb880> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152020> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152020> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acbb00> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76ac8b80> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acbc40> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acb880> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76ac8360> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acb1a0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acb100> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76aca5c0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acaca0> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c76acb740> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 20:05:04 20:05:04 cls = 20:05:04 func = . at 0x7f5c77152340> 20:05:04 when = 'setup' 20:05:04 reraise = (, ) 20:05:04 20:05:04 @classmethod 20:05:04 def from_call( 20:05:04 cls, 20:05:04 func: Callable[[], TResult], 20:05:04 when: Literal["collect", "setup", "call", "teardown"], 20:05:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:05:04 ) -> CallInfo[TResult]: 20:05:04 """Call func, wrapping the result in a CallInfo. 20:05:04 20:05:04 :param func: 20:05:04 The function to call. Called without arguments. 20:05:04 :type func: Callable[[], _pytest.runner.TResult] 20:05:04 :param when: 20:05:04 The phase in which the function is called. 20:05:04 :param reraise: 20:05:04 Exception or exceptions that shall propagate if raised by the 20:05:04 function, instead of being wrapped in the CallInfo. 20:05:04 """ 20:05:04 excinfo = None 20:05:04 instant = timing.Instant() 20:05:04 try: 20:05:04 > result: TResult | None = func() 20:05:04 ^^^^^^ 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:05:04 lambda: runtest_hook(item=item, **kwds), 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:05:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:05:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:05:04 yield 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:05:04 return (yield) 20:05:04 ^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:05:04 item.session._setupstate.setup(item) 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:05:04 col.setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:05:04 super().setup() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:05:04 self._request._fillfixtures() 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:05:04 item.funcargs[argname] = self.getfixturevalue(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:05:04 fixturedef = self._get_active_fixturedef(argname) 20:05:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:05:04 fixturedef.execute(request=subrequest) 20:05:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:05:04 20:05:04 self = 20:05:04 request = > 20:05:04 20:05:04 def execute(self, request: SubRequest) -> FixtureValue: 20:05:04 """Return the value of this fixture, executing it if not cached.""" 20:05:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:05:04 # This needs to be done before checking if we have a cached value, since 20:05:04 # if a dependent fixture has their cache invalidated, e.g. due to 20:05:04 # parametrization, they finalize themselves and fixtures depending on it 20:05:04 # (which will likely include this fixture) setting `self.cached_result = None`. 20:05:04 # See #4871 20:05:04 requested_fixtures_that_should_finalize_us = [] 20:05:04 for argname in self.argnames: 20:05:04 fixturedef = request._get_active_fixturedef(argname) 20:05:04 # Saves requested fixtures in a list so we later can add our finalizer 20:05:04 # to them, ensuring that if a requested fixture gets torn down we get torn 20:05:04 # down first. This is generally handled by SetupState, but still currently 20:05:04 # needed when this fixture is not parametrized but depends on a parametrized 20:05:04 # fixture. 20:05:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:05:04 20:05:04 # Check for (and return) cached value/exception. 20:05:04 if self.cached_result is not None: 20:05:04 request_cache_key = self.cache_key(request) 20:05:04 cache_key = self.cached_result[1] 20:05:04 try: 20:05:04 # Attempt to make a normal == check: this might fail for objects 20:05:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:05:04 cache_hit = bool(request_cache_key == cache_key) 20:05:04 except (ValueError, RuntimeError): 20:05:04 # If the comparison raises, use 'is' as fallback. 20:05:04 cache_hit = request_cache_key is cache_key 20:05:04 20:05:04 if cache_hit: 20:05:04 if self.cached_result[2] is not None: 20:05:04 exc, exc_tb = self.cached_result[2] 20:05:04 raise exc.with_traceback(exc_tb) 20:05:04 else: 20:05:04 return self.cached_result[0] 20:05:04 # We have a previous but differently parametrized fixture instance 20:05:04 # so we need to tear it down before creating a new one. 20:05:04 self.finish(request) 20:05:04 assert self.cached_result is None 20:05:04 20:05:04 # Add finalizer to requested fixtures we saved previously. 20:05:04 # We make sure to do this after checking for cached value to avoid 20:05:04 # adding our finalizer multiple times. (#12135) 20:05:04 finalizer = functools.partial(self.finish, request=request) 20:05:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:05:04 parent_fixture.addfinalizer(finalizer) 20:05:04 20:05:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:05:04 # which is executed last. 20:05:04 > assert not self._finalizers 20:05:04 ^^^^^^^^^^^^^^^^^^^^ 20:05:04 E AssertionError 20:05:04 20:05:04 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:05:04 =========================== short test summary info ============================ 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 20:05:04 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 20:05:04 35 errors in 106.39s (0:01:46) 20:05:04 tests71: FAIL ✖ in 1 minute 51.22 seconds 20:05:04 tests221: exit 1 (106.69 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 pid=4313 20:05:04 tests221: FAIL ✖ in 1 minute 54.35 seconds 20:05:04 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 20:05:12 tests_hybrid: freeze> python -m pip freeze --all 20:05:12 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 20:05:12 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid 20:05:12 using environment variables from ./karaf221.env 20:05:12 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 20:06:52 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 20:07:01 ==================================== ERRORS ==================================== 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 20:07:01 20:07:01 cls = 20:07:01 20:07:01 @classmethod 20:07:01 def setUpClass(cls): 20:07:01 > cls.processes = test_utils.start_tpce() 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 20:07:01 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 def start_tpce(): 20:07:01 if 'NO_ODL_STARTUP' in os.environ: 20:07:01 print('No OpenDaylight instance to start!') 20:07:01 return [] 20:07:01 print('starting OpenDaylight...') 20:07:01 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 20:07:01 process = start_lighty() 20:07:01 else: 20:07:01 process = start_karaf() 20:07:01 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 20:07:01 print('OpenDaylight started !') 20:07:01 else: 20:07:01 print('OpenDaylight failed to start !') 20:07:01 shutdown_process(process) 20:07:01 for pid in process_list: 20:07:01 shutdown_process(pid) 20:07:01 > sys.exit(1) 20:07:01 E SystemExit: 1 20:07:01 20:07:01 transportpce_tests/common/test_utils.py:232: SystemExit 20:07:01 ---------------------------- Captured stdout setup ----------------------------- 20:07:01 starting OpenDaylight... 20:07:01 starting KARAF (karaf221) TransportPCE build... 20:07:01 Pattern not found after 100 seconds! OpenDaylight failed to start ! 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f563e0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2ac0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f14586ce7a0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f57ba0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f57f60> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f57ba0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff23e0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14360> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f14596218a0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f57f60> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3420> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14040> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f14596218a0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3880> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f14596218a0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14220> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3880> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f14596218a0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14220> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14220> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff0040> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff0040> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2660> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2de0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2ca0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3d80> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff36a0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3c40> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3600> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3740> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3d80> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2ca0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff0040> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3740> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff3880> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2660> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2b60> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff2de0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456f14400> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 20:07:01 20:07:01 cls = 20:07:01 func = . at 0x7f1456ff23e0> 20:07:01 when = 'setup' 20:07:01 reraise = (, ) 20:07:01 20:07:01 @classmethod 20:07:01 def from_call( 20:07:01 cls, 20:07:01 func: Callable[[], TResult], 20:07:01 when: Literal["collect", "setup", "call", "teardown"], 20:07:01 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 20:07:01 ) -> CallInfo[TResult]: 20:07:01 """Call func, wrapping the result in a CallInfo. 20:07:01 20:07:01 :param func: 20:07:01 The function to call. Called without arguments. 20:07:01 :type func: Callable[[], _pytest.runner.TResult] 20:07:01 :param when: 20:07:01 The phase in which the function is called. 20:07:01 :param reraise: 20:07:01 Exception or exceptions that shall propagate if raised by the 20:07:01 function, instead of being wrapped in the CallInfo. 20:07:01 """ 20:07:01 excinfo = None 20:07:01 instant = timing.Instant() 20:07:01 try: 20:07:01 > result: TResult | None = func() 20:07:01 ^^^^^^ 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 20:07:01 lambda: runtest_hook(item=item, **kwds), 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 20:07:01 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 20:07:01 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 20:07:01 yield 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 20:07:01 return (yield) 20:07:01 ^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 20:07:01 item.session._setupstate.setup(item) 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 20:07:01 col.setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 20:07:01 super().setup() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 20:07:01 self._request._fillfixtures() 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 20:07:01 item.funcargs[argname] = self.getfixturevalue(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 20:07:01 fixturedef = self._get_active_fixturedef(argname) 20:07:01 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 20:07:01 fixturedef.execute(request=subrequest) 20:07:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20:07:01 20:07:01 self = 20:07:01 request = > 20:07:01 20:07:01 def execute(self, request: SubRequest) -> FixtureValue: 20:07:01 """Return the value of this fixture, executing it if not cached.""" 20:07:01 # Ensure that the dependent fixtures requested by this fixture are loaded. 20:07:01 # This needs to be done before checking if we have a cached value, since 20:07:01 # if a dependent fixture has their cache invalidated, e.g. due to 20:07:01 # parametrization, they finalize themselves and fixtures depending on it 20:07:01 # (which will likely include this fixture) setting `self.cached_result = None`. 20:07:01 # See #4871 20:07:01 requested_fixtures_that_should_finalize_us = [] 20:07:01 for argname in self.argnames: 20:07:01 fixturedef = request._get_active_fixturedef(argname) 20:07:01 # Saves requested fixtures in a list so we later can add our finalizer 20:07:01 # to them, ensuring that if a requested fixture gets torn down we get torn 20:07:01 # down first. This is generally handled by SetupState, but still currently 20:07:01 # needed when this fixture is not parametrized but depends on a parametrized 20:07:01 # fixture. 20:07:01 requested_fixtures_that_should_finalize_us.append(fixturedef) 20:07:01 20:07:01 # Check for (and return) cached value/exception. 20:07:01 if self.cached_result is not None: 20:07:01 request_cache_key = self.cache_key(request) 20:07:01 cache_key = self.cached_result[1] 20:07:01 try: 20:07:01 # Attempt to make a normal == check: this might fail for objects 20:07:01 # which do not implement the standard comparison (like numpy arrays -- #6497). 20:07:01 cache_hit = bool(request_cache_key == cache_key) 20:07:01 except (ValueError, RuntimeError): 20:07:01 # If the comparison raises, use 'is' as fallback. 20:07:01 cache_hit = request_cache_key is cache_key 20:07:01 20:07:01 if cache_hit: 20:07:01 if self.cached_result[2] is not None: 20:07:01 exc, exc_tb = self.cached_result[2] 20:07:01 raise exc.with_traceback(exc_tb) 20:07:01 else: 20:07:01 return self.cached_result[0] 20:07:01 # We have a previous but differently parametrized fixture instance 20:07:01 # so we need to tear it down before creating a new one. 20:07:01 self.finish(request) 20:07:01 assert self.cached_result is None 20:07:01 20:07:01 # Add finalizer to requested fixtures we saved previously. 20:07:01 # We make sure to do this after checking for cached value to avoid 20:07:01 # adding our finalizer multiple times. (#12135) 20:07:01 finalizer = functools.partial(self.finish, request=request) 20:07:01 for parent_fixture in requested_fixtures_that_should_finalize_us: 20:07:01 parent_fixture.addfinalizer(finalizer) 20:07:01 20:07:01 # Register the pytest_fixture_post_finalizer as the first finalizer, 20:07:01 # which is executed last. 20:07:01 > assert not self._finalizers 20:07:01 ^^^^^^^^^^^^^^^^^^^^ 20:07:01 E AssertionError 20:07:01 20:07:01 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 20:07:01 =========================== short test summary info ============================ 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 20:07:01 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 20:07:01 51 errors in 108.91s (0:01:48) 20:07:01 tests_hybrid: exit 1 (109.20 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid pid=4433 20:07:01 buildcontroller: FAIL code 1 (21.54=setup[8.55]+cmd[12.99] seconds) 20:07:01 sims: OK (9.37=setup[6.70]+cmd[2.67] seconds) 20:07:01 build_karaf_tests121: FAIL code 127 (17.11=setup[7.70]+cmd[9.40] seconds) 20:07:01 testsPCE: FAIL code 1 (178.91=setup[54.79]+cmd[124.12] seconds) 20:07:01 tests121: FAIL code 1 (112.82=setup[8.46]+cmd[104.36] seconds) 20:07:01 build_karaf_tests221: FAIL code 127 (16.57=setup[7.42]+cmd[9.16] seconds) 20:07:01 tests_tapi: FAIL code 1 (118.46=setup[8.48]+cmd[109.99] seconds) 20:07:01 tests221: FAIL code 1 (114.35=setup[7.67]+cmd[106.69] seconds) 20:07:01 build_karaf_tests71: FAIL code 127 (13.70=setup[8.69]+cmd[5.02] seconds) 20:07:01 tests71: FAIL code 1 (111.22=setup[8.69]+cmd[102.53] seconds) 20:07:01 build_karaf_tests190: FAIL code 127 (14.47=setup[8.80]+cmd[5.68] seconds) 20:07:01 tests190: FAIL code 1 (110.76=setup[8.53]+cmd[102.22] seconds) 20:07:01 tests_hybrid: FAIL code 1 (116.88=setup[7.68]+cmd[109.20] seconds) 20:07:01 buildlighty: FAIL code 9 (9.24=setup[6.69]+cmd[2.55] seconds) 20:07:01 docs: OK (20.42=setup[17.91]+cmd[2.51] seconds) 20:07:01 docs-linkcheck: OK (22.13=setup[18.06]+cmd[4.06] seconds) 20:07:01 checkbashisms: OK (3.04=setup[1.80]+cmd[0.01,0.04,1.19] seconds) 20:07:01 pre-commit: OK (50.67=setup[3.12]+cmd[0.00,0.01,39.27,8.28] seconds) 20:07:01 pylint: OK (32.09=setup[3.80]+cmd[28.29] seconds) 20:07:01 evaluation failed :( (581.84 seconds) 20:07:01 + tox_status=1 20:07:01 + echo '---> Completed tox runs' 20:07:01 ---> Completed tox runs 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/build_karaf_tests121/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=build_karaf_tests121 20:07:01 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests121 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/build_karaf_tests190/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=build_karaf_tests190 20:07:01 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests190 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/build_karaf_tests221/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=build_karaf_tests221 20:07:01 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests221 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/build_karaf_tests71/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=build_karaf_tests71 20:07:01 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests71 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/buildcontroller/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=buildcontroller 20:07:01 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildcontroller 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/buildlighty/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=buildlighty 20:07:01 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildlighty 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/checkbashisms/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=checkbashisms 20:07:01 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/checkbashisms 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/docs-linkcheck/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=docs-linkcheck 20:07:01 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs-linkcheck 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/docs/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=docs 20:07:01 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/pre-commit/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=pre-commit 20:07:01 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pre-commit 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/pylint/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=pylint 20:07:01 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pylint 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/sims/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=sims 20:07:01 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/sims 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/tests121/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=tests121 20:07:01 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests121 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/tests190/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=tests190 20:07:01 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests190 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/tests221/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=tests221 20:07:01 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests221 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/tests71/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=tests71 20:07:01 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests71 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/testsPCE/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=testsPCE 20:07:01 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/testsPCE 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/tests_hybrid/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=tests_hybrid 20:07:01 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_hybrid 20:07:01 + for i in .tox/*/log 20:07:01 ++ echo .tox/tests_tapi/log 20:07:01 ++ awk -F/ '{print $2}' 20:07:01 + tox_env=tests_tapi 20:07:01 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_tapi 20:07:01 + DOC_DIR=docs/_build/html 20:07:01 + [[ -d docs/_build/html ]] 20:07:01 + echo '---> Archiving generated docs' 20:07:01 ---> Archiving generated docs 20:07:01 + mv docs/_build/html /w/workspace/transportpce-tox-verify-titanium/archives/docs 20:07:01 + echo '---> tox-run.sh ends' 20:07:01 ---> tox-run.sh ends 20:07:01 + test 1 -eq 0 20:07:01 + exit 1 20:07:01 ++ '[' 1 = 1 ']' 20:07:01 ++ '[' -x /usr/bin/clear_console ']' 20:07:01 ++ /usr/bin/clear_console -q 20:07:01 Build step 'Execute shell' marked build as failure 20:07:01 $ ssh-agent -k 20:07:01 unset SSH_AUTH_SOCK; 20:07:01 unset SSH_AGENT_PID; 20:07:01 echo Agent pid 1547 killed; 20:07:01 [ssh-agent] Stopped. 20:07:01 [PostBuildScript] - [INFO] Executing post build scripts. 20:07:01 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins9169919551872719370.sh 20:07:01 ---> sysstat.sh 20:07:02 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins7913376636729281572.sh 20:07:02 ---> package-listing.sh 20:07:02 ++ facter osfamily 20:07:02 ++ tr '[:upper:]' '[:lower:]' 20:07:02 + OS_FAMILY=debian 20:07:02 + workspace=/w/workspace/transportpce-tox-verify-titanium 20:07:02 + START_PACKAGES=/tmp/packages_start.txt 20:07:02 + END_PACKAGES=/tmp/packages_end.txt 20:07:02 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:07:02 + PACKAGES=/tmp/packages_start.txt 20:07:02 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 20:07:02 + PACKAGES=/tmp/packages_end.txt 20:07:02 + case "${OS_FAMILY}" in 20:07:02 + dpkg -l 20:07:02 + grep '^ii' 20:07:02 + '[' -f /tmp/packages_start.txt ']' 20:07:02 + '[' -f /tmp/packages_end.txt ']' 20:07:02 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:07:02 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 20:07:02 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/ 20:07:02 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-titanium/archives/ 20:07:02 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins2430866900895158396.sh 20:07:02 ---> capture-instance-metadata.sh 20:07:02 Setup pyenv: 20:07:02 system 20:07:03 3.8.20 20:07:03 3.9.20 20:07:03 3.10.15 20:07:03 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 20:07:03 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qjcJ from file:/tmp/.os_lf_venv 20:07:03 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:07:04 lf-activate-venv(): INFO: Installing additional packages: lftools 20:07:15 lf-activate-venv(): INFO: Adding /tmp/venv-qjcJ/bin to PATH 20:07:15 INFO: Running in OpenStack, capturing instance metadata 20:07:16 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins10979295186280057859.sh 20:07:16 provisioning config files... 20:07:16 Could not find credentials [logs] for transportpce-tox-verify-titanium #46 20:07:16 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-titanium@tmp/config13475967294665162661tmp 20:07:16 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 20:07:16 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 20:07:16 provisioning config files... 20:07:16 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 20:07:16 [EnvInject] - Injecting environment variables from a build step. 20:07:16 [EnvInject] - Injecting as environment variables the properties content 20:07:16 SERVER_ID=logs 20:07:16 20:07:16 [EnvInject] - Variables injected successfully. 20:07:16 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins13246798763300906573.sh 20:07:16 ---> create-netrc.sh 20:07:17 WARN: Log server credential not found. 20:07:17 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins11219771959738422456.sh 20:07:17 ---> python-tools-install.sh 20:07:17 Setup pyenv: 20:07:17 system 20:07:17 3.8.20 20:07:17 3.9.20 20:07:17 3.10.15 20:07:17 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 20:07:17 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qjcJ from file:/tmp/.os_lf_venv 20:07:17 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:07:19 lf-activate-venv(): INFO: Installing additional packages: lftools 20:07:29 lf-activate-venv(): INFO: Adding /tmp/venv-qjcJ/bin to PATH 20:07:29 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins6531361997543634053.sh 20:07:29 ---> uv-install.sh 20:07:29 uv 0.12.9 is already installed 20:07:29 uvx 0.12.9 (x86_64-unknown-linux-gnu) 20:07:29 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins1055106536012605953.sh 20:07:29 ---> sudo-logs.sh 20:07:29 Archiving 'sudo' log.. 20:07:29 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins7733436432002348482.sh 20:07:29 ---> job-cost.sh 20:07:30 INFO: Activating Python virtual environment... 20:07:30 Setup pyenv: 20:07:30 system 20:07:30 3.8.20 20:07:30 3.9.20 20:07:30 3.10.15 20:07:30 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 20:07:30 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qjcJ from file:/tmp/.os_lf_venv 20:07:30 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:07:32 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 20:07:40 lf-activate-venv(): INFO: Adding /tmp/venv-qjcJ/bin to PATH 20:07:40 INFO: No stack-cost file found 20:07:40 INFO: Instance uptime: 756s 20:07:40 INFO: Fetching instance metadata (attempt 1 of 3)... 20:07:40 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 20:07:40 INFO: Successfully fetched instance metadata 20:07:40 INFO: Instance type: v3-standard-4 20:07:40 INFO: Retrieving pricing info for: v3-standard-4 20:07:40 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 20:07:40 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=756 20:07:40 INFO: Successfully fetched Vexxhost pricing API 20:07:40 INFO: Retrieved cost: 0.11 20:07:40 INFO: Retrieved resource: v3-standard-4 20:07:40 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-titanium/archives/cost 20:07:40 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-titanium/archives/cost.csv 20:07:40 INFO: Successfully archived job cost data 20:07:40 DEBUG: Cost data: transportpce-tox-verify-titanium,46,2026-09-02 20:07:40,v3-standard-4,756,0.11,0.00,FAILURE 20:07:40 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins17233012628152693160.sh 20:07:40 ---> logs-deploy.sh 20:07:40 Setup pyenv: 20:07:40 system 20:07:40 3.8.20 20:07:40 3.9.20 20:07:40 3.10.15 20:07:40 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 20:07:41 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qjcJ from file:/tmp/.os_lf_venv 20:07:41 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 20:07:42 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 20:07:52 lf-activate-venv(): INFO: Adding /tmp/venv-qjcJ/bin to PATH 20:07:52 WARNING: Nexus logging server not set 20:07:52 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-titanium/46/ 20:07:52 INFO: archiving logs to S3 20:07:53 ---> uname -a: 20:07:53 Linux prd-ubuntu2204-docker-4c-16g-46932 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 20:07:53 20:07:53 20:07:53 ---> lscpu: 20:07:53 Architecture: x86_64 20:07:53 CPU op-mode(s): 32-bit, 64-bit 20:07:53 Address sizes: 40 bits physical, 48 bits virtual 20:07:53 Byte Order: Little Endian 20:07:53 CPU(s): 4 20:07:53 On-line CPU(s) list: 0-3 20:07:53 Vendor ID: AuthenticAMD 20:07:53 Model name: AMD EPYC-Rome Processor 20:07:53 CPU family: 23 20:07:53 Model: 49 20:07:53 Thread(s) per core: 1 20:07:53 Core(s) per socket: 1 20:07:53 Socket(s): 4 20:07:53 Stepping: 0 20:07:53 BogoMIPS: 5600.00 20:07:53 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 20:07:53 Virtualization: AMD-V 20:07:53 Hypervisor vendor: KVM 20:07:53 Virtualization type: full 20:07:53 L1d cache: 128 KiB (4 instances) 20:07:53 L1i cache: 128 KiB (4 instances) 20:07:53 L2 cache: 2 MiB (4 instances) 20:07:53 L3 cache: 64 MiB (4 instances) 20:07:53 NUMA node(s): 1 20:07:53 NUMA node0 CPU(s): 0-3 20:07:53 Vulnerability Gather data sampling: Not affected 20:07:53 Vulnerability Indirect target selection: Not affected 20:07:53 Vulnerability Itlb multihit: Not affected 20:07:53 Vulnerability L1tf: Not affected 20:07:53 Vulnerability Mds: Not affected 20:07:53 Vulnerability Meltdown: Not affected 20:07:53 Vulnerability Mmio stale data: Not affected 20:07:53 Vulnerability Reg file data sampling: Not affected 20:07:53 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 20:07:53 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 20:07:53 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 20:07:53 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 20:07:53 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 20:07:53 Vulnerability Srbds: Not affected 20:07:53 Vulnerability Tsa: Not affected 20:07:53 Vulnerability Tsx async abort: Not affected 20:07:53 Vulnerability Vmscape: Not affected 20:07:53 20:07:53 20:07:53 ---> nproc: 20:07:53 4 20:07:53 20:07:53 20:07:53 ---> df -h: 20:07:53 Filesystem Size Used Avail Use% Mounted on 20:07:53 tmpfs 1.6G 1.1M 1.6G 1% /run 20:07:53 /dev/vda1 78G 11G 67G 15% / 20:07:53 tmpfs 7.9G 0 7.9G 0% /dev/shm 20:07:53 tmpfs 5.0M 0 5.0M 0% /run/lock 20:07:53 /dev/vda15 105M 6.1M 99M 6% /boot/efi 20:07:53 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 20:07:53 20:07:53 20:07:53 ---> free -m: 20:07:53 total used free shared buff/cache available 20:07:53 Mem: 15989 714 9819 4 5454 14930 20:07:53 Swap: 1023 0 1023 20:07:53 20:07:53 20:07:53 ---> ip addr: 20:07:53 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 20:07:53 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 20:07:53 inet 127.0.0.1/8 scope host lo 20:07:53 valid_lft forever preferred_lft forever 20:07:53 inet6 ::1/128 scope host 20:07:53 valid_lft forever preferred_lft forever 20:07:53 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 20:07:53 link/ether fa:16:3e:87:c1:1a brd ff:ff:ff:ff:ff:ff 20:07:53 altname enp0s3 20:07:53 inet 10.30.171.68/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 20:07:53 valid_lft 85639sec preferred_lft 85639sec 20:07:53 inet6 fe80::f816:3eff:fe87:c11a/64 scope link 20:07:53 valid_lft forever preferred_lft forever 20:07:53 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 20:07:53 link/ether 56:07:5a:63:39:2f brd ff:ff:ff:ff:ff:ff 20:07:53 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 20:07:53 valid_lft forever preferred_lft forever 20:07:53 20:07:53 20:07:53 ---> sar -b -r -n DEV: 20:07:53 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-46932) 09/02/26 _x86_64_ (4 CPU) 20:07:53 20:07:53 19:55:14 LINUX RESTART (4 CPU) 20:07:53 20:07:53 20:07:53 ---> sar -P ALL: 20:07:53 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-46932) 09/02/26 _x86_64_ (4 CPU) 20:07:53 20:07:53 19:55:14 LINUX RESTART (4 CPU) 20:07:53 20:07:53 20:07:53