10:51:55 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/127144 10:51:55 Running as SYSTEM 10:51:55 [EnvInject] - Loading node environment variables. 10:51:55 Building remotely on prd-ubuntu2204-docker-4c-16g-66435 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-chromium 10:51:58 [ssh-agent] Looking for ssh-agent implementation... 10:51:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 10:51:58 $ ssh-agent 10:51:58 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXsUlggb/agent.1558 10:51:58 SSH_AGENT_PID=1560 10:51:58 [ssh-agent] Started. 10:51:58 Running ssh-add (command line suppressed) 10:51:58 Identity added: /w/workspace/transportpce-tox-verify-chromium@tmp/private_key_12056098587240572416.key (/w/workspace/transportpce-tox-verify-chromium@tmp/private_key_12056098587240572416.key) 10:51:58 [ssh-agent] Using credentials jenkins (jenkins-ssh) 10:51:58 The recommended git tool is: NONE 10:52:00 using credential jenkins-ssh 10:52:00 Wiping out workspace first. 10:52:00 Cloning the remote Git repository 10:52:00 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 10:52:00 > git init /w/workspace/transportpce-tox-verify-chromium # timeout=10 10:52:00 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 10:52:00 > git --version # timeout=10 10:52:00 > git --version # 'git version 2.34.1' 10:52:00 using GIT_SSH to set credentials jenkins-ssh 10:52:00 Verifying host key using known hosts file, will automatically accept unseen keys 10:52:00 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 10:52:05 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 10:52:05 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 10:52:05 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 10:52:05 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 10:52:05 using GIT_SSH to set credentials jenkins-ssh 10:52:05 Verifying host key using known hosts file, will automatically accept unseen keys 10:52:05 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/44/127144/1 # timeout=10 10:52:05 > git rev-parse f1c52835935476ca75493894acc48306a4476f8a^{commit} # timeout=10 10:52:05 Checking out Revision f1c52835935476ca75493894acc48306a4476f8a (refs/changes/44/127144/1) 10:52:05 > git config core.sparsecheckout # timeout=10 10:52:05 > git checkout -f f1c52835935476ca75493894acc48306a4476f8a # timeout=10 10:52:09 Commit message: "fix: pin releng-reusable-workflows to v0.11.0" 10:52:09 > git rev-parse FETCH_HEAD^{commit} # timeout=10 10:52:09 > git rev-list --no-walk f0a025f28486d154b318aacab6990b0de9a65b5d # timeout=10 10:52:09 > git remote # timeout=10 10:52:09 > git submodule init # timeout=10 10:52:09 > git submodule sync # timeout=10 10:52:09 > git config --get remote.origin.url # timeout=10 10:52:09 > git submodule init # timeout=10 10:52:09 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 10:52:09 ERROR: No submodules found. 10:52:09 provisioning config files... 10:52:09 copy managed file [npmrc] to file:/home/jenkins/.npmrc 10:52:09 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 10:52:09 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins18192686170278513564.sh 10:52:09 ---> python-tools-install.sh 10:52:09 Setup pyenv: 10:52:10 * system (set by /opt/pyenv/version) 10:52:10 * 3.8.20 (set by /opt/pyenv/version) 10:52:10 * 3.9.20 (set by /opt/pyenv/version) 10:52:10 3.10.15 10:52:10 3.11.10 10:52:14 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-RH2f 10:52:14 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 10:52:14 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:52:18 lf-activate-venv(): INFO: Installing additional packages: lftools 10:52:44 lf-activate-venv(): INFO: Adding /tmp/venv-RH2f/bin to PATH 10:52:44 Generating Requirements File 10:53:13 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. 10:53:13 botocore 1.43.118 requires python-dateutil<3.0.0,>=2.1, but you have python-dateutil 3.0.0 which is incompatible. 10:53:13 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 10:53:13 Python 3.11.10 10:53:14 pip 26.2.2 from /tmp/venv-RH2f/lib/python3.11/site-packages/pip (python 3.11) 10:53:14 aiohappyeyeballs==2.7.1 10:53:14 aiohttp==3.14.5 10:53:14 aiosignal==1.4.0 10:53:14 appdirs==1.4.4 10:53:14 argcomplete==3.7.2 10:53:14 aspy.yaml==1.3.0 10:53:14 attrs==26.1.0 10:53:14 autopage==0.6.0 10:53:14 beautifulsoup4==4.15.0 10:53:14 boto3==1.43.118 10:53:14 botocore==1.43.118 10:53:14 bs4==0.0.2 10:53:14 certifi==2026.10.19 10:53:14 cffi==2.1.1 10:53:14 cfgv==3.5.0 10:53:14 chardet==7.7.0 10:53:14 charset-normalizer==3.5.2 10:53:14 click==8.5.0 10:53:14 cliff==4.17.0 10:53:14 cmd2==4.3.0 10:53:14 cryptography==3.3.2 10:53:14 debtcollector==3.1.0 10:53:14 decorator==5.3.1 10:53:14 defusedxml==0.7.1 10:53:14 Deprecated==1.3.1 10:53:14 distlib==0.4.4 10:53:14 dnspython==2.9.0 10:53:14 docker==7.2.0 10:53:14 dogpile.cache==1.5.0 10:53:14 durationpy==0.11 10:53:14 email-validator==2.3.0 10:53:14 filelock==4.2.4 10:53:14 frozenlist==1.8.0 10:53:14 future==1.0.0 10:53:14 gitdb==4.0.12 10:53:14 GitPython==3.2.1 10:53:14 httplib2==0.30.2 10:53:14 identify==2.6.20 10:53:14 idna==3.20 10:53:14 importlib-resources==1.5.0 10:53:14 iso8601==2.1.0 10:53:14 Jinja2==3.1.6 10:53:14 jmespath==1.1.0 10:53:14 jsonpatch==1.36 10:53:14 jsonpointer==3.4 10:53:14 jsonschema==4.26.0 10:53:14 jsonschema-specifications==2025.9.1 10:53:14 keystoneauth1==5.18.1 10:53:14 kubernetes==36.0.3 10:53:14 lftools==0.37.26 10:53:14 lxml==6.1.3 10:53:14 markdown-it-py==4.2.0 10:53:14 MarkupSafe==3.0.4 10:53:14 mdurl==0.1.2 10:53:14 msgpack==1.2.3 10:53:14 multi_key_dict==2.0.3 10:53:14 multidict==7.1.0 10:53:14 munch==4.0.0 10:53:14 netaddr==1.3.0 10:53:14 niet==1.4.2 10:53:14 nodeenv==1.11.0 10:53:14 oauth2client==4.1.3 10:53:14 oauthlib==4.0.0 10:53:14 openstacksdk==4.22.0 10:53:14 os-service-types==1.9.0 10:53:14 osc-lib==4.7.0 10:53:14 oslo.config==10.7.0 10:53:14 oslo.context==6.5.0 10:53:14 oslo.i18n==6.9.0 10:53:14 oslo.log==8.3.2 10:53:14 oslo.serialization==5.11.0 10:53:14 oslo.utils==10.2.0 10:53:14 packaging==26.3 10:53:14 pbr==7.1.3 10:53:14 platformdirs==4.13.5 10:53:14 prettytable==3.18.0 10:53:14 prompt_toolkit==3.0.53 10:53:14 propcache==0.5.4 10:53:14 psutil==7.2.2 10:53:14 pyasn1==0.6.4 10:53:14 pyasn1_modules==0.4.2 10:53:14 pycparser==3.12 10:53:14 pygerrit2==2.0.15 10:53:14 PyGithub==2.10.0 10:53:14 Pygments==2.21.0 10:53:14 PyJWT==2.15.1 10:53:14 PyNaCl==1.6.2 10:53:14 pyparsing==2.4.7 10:53:14 pyperclip==1.11.0 10:53:14 pyrsistent==0.20.0 10:53:14 python-dateutil==3.0.0 10:53:14 python-discovery==1.6.4 10:53:14 python-heatclient==5.3.0 10:53:14 python-jenkins==1.8.3 10:53:14 python-keystoneclient==6.0.0 10:53:14 python-magnumclient==5.0.0 10:53:14 python-manilaclient==6.3.0 10:53:14 python-openstackclient==10.5.0 10:53:14 python-swiftclient==4.11.0 10:53:14 PyYAML==6.0.3 10:53:14 referencing==0.37.0 10:53:14 requests==2.34.2 10:53:14 requests-oauthlib==2.0.0 10:53:14 rfc3986==2.0.0 10:53:14 rich==15.0.0 10:53:14 rich-argparse==1.8.0 10:53:14 rpds-py==2026.9.1 10:53:14 rsa==4.9.1 10:53:14 ruamel.yaml==0.19.1 10:53:14 ruamel.yaml.clib==0.2.15 10:53:14 s3transfer==0.19.3 10:53:14 simplejson==4.2.0 10:53:14 six==1.17.0 10:53:14 smmap==5.0.3 10:53:14 soupsieve==3.0.4 10:53:14 stevedore==5.9.1 10:53:14 tabulate==0.10.0 10:53:14 toml==0.10.2 10:53:14 tomlkit==0.15.2 10:53:14 tqdm==4.70.1 10:53:14 typing_extensions==4.16.0 10:53:14 tzdata==2026.5 10:53:14 urllib3==1.26.20 10:53:14 virtualenv==21.14.13 10:53:14 wcwidth==0.9.3 10:53:14 websocket-client==1.9.2 10:53:14 wrapt==2.5.1 10:53:14 xdg==6.0.0 10:53:14 xmltodict==1.0.4 10:53:14 yarl==1.25.1 10:53:14 yq==4.4.5 10:53:14 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins521026940927219500.sh 10:53:14 ---> uv-install.sh 10:53:14 Installing uv/uvx (latest) using shell installer 10:53:14 2026-10-23 10:53:14 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71300/71300] -> "/tmp/uv-install-PMaXjy.sh" [1] 10:53:14 downloading uv 0.13.5 x86_64-unknown-linux-gnu 10:53:15 installing to /home/jenkins/.local/bin 10:53:15 uv 10:53:15 uvx 10:53:15 everything's installed! 10:53:15 10:53:15 To add $HOME/.local/bin to your PATH, either restart your shell or run: 10:53:15 10:53:15 source $HOME/.local/bin/env (sh, bash, zsh) 10:53:15 source $HOME/.local/bin/env.fish (fish) 10:53:15 Adding install location to PATH 10:53:15 ---> Validating uv/uvx install 10:53:15 uvx 0.13.5 (x86_64-unknown-linux-gnu) 10:53:15 [EnvInject] - Injecting environment variables from a build step. 10:53:15 [EnvInject] - Injecting as environment variables the properties content 10:53:15 PYTHON=python3 10:53:15 10:53:15 [EnvInject] - Variables injected successfully. 10:53:15 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins15116301547906007694.sh 10:53:15 ---> tox-install.sh 10:53:15 + source /home/jenkins/lf-env.sh 10:53:15 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:53:15 ++ mktemp -d /tmp/venv-XXXX 10:53:15 + lf_venv=/tmp/venv-PkOZ 10:53:15 + local venv_file=/tmp/.os_lf_venv 10:53:15 + local python=python3 10:53:15 + local options 10:53:15 + local set_path=true 10:53:15 + local install_args= 10:53:15 ++ 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 10:53:15 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:53:15 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:53:15 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 10:53:15 + true 10:53:15 + case $1 in 10:53:15 + venv_file=/tmp/.toxenv 10:53:15 + shift 2 10:53:15 + true 10:53:15 + case $1 in 10:53:15 + shift 10:53:15 + break 10:53:15 + case $python in 10:53:15 + local pkg_list= 10:53:15 + [[ -d /opt/pyenv ]] 10:53:15 + echo 'Setup pyenv:' 10:53:15 Setup pyenv: 10:53:15 + export PYENV_ROOT=/opt/pyenv 10:53:15 + PYENV_ROOT=/opt/pyenv 10:53:15 + 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 10:53:15 + 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 10:53:15 + pyenv versions 10:53:15 system 10:53:15 3.8.20 10:53:15 3.9.20 10:53:15 3.10.15 10:53:15 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 10:53:15 + command -v pyenv 10:53:15 ++ pyenv init - --no-rehash 10:53:15 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 10:53:15 for i in ${!paths[@]}; do 10:53:15 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 10:53:15 fi; done; 10:53:15 echo "${paths[*]}"'\'')" 10:53:15 export PATH="/opt/pyenv/shims:${PATH}" 10:53:15 export PYENV_SHELL=bash 10:53:15 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 10:53:15 pyenv() { 10:53:15 local command 10:53:15 command="${1:-}" 10:53:15 if [ "$#" -gt 0 ]; then 10:53:15 shift 10:53:15 fi 10:53:15 10:53:15 case "$command" in 10:53:15 rehash|shell) 10:53:15 eval "$(pyenv "sh-$command" "$@")" 10:53:15 ;; 10:53:15 *) 10:53:15 command pyenv "$command" "$@" 10:53:15 ;; 10:53:15 esac 10:53:15 }' 10:53:15 +++ bash --norc -ec 'IFS=:; paths=($PATH); 10:53:15 for i in ${!paths[@]}; do 10:53:15 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 10:53:15 fi; done; 10:53:15 echo "${paths[*]}"' 10:53:15 ++ 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 10:53:15 ++ 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 10:53:15 ++ 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 10:53:15 ++ export PYENV_SHELL=bash 10:53:15 ++ PYENV_SHELL=bash 10:53:15 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 10:53:15 +++ complete -F _pyenv pyenv 10:53:15 ++ lf-pyver python3 10:53:15 ++ local py_version_xy=python3 10:53:15 ++ local py_version_xyz= 10:53:15 ++ pyenv versions 10:53:15 ++ local command 10:53:15 ++ command=versions 10:53:15 ++ '[' 1 -gt 0 ']' 10:53:15 ++ shift 10:53:15 ++ case "$command" in 10:53:15 ++ command pyenv versions 10:53:15 ++ awk '{ print $1 }' 10:53:15 ++ grep -E '^[0-9.]*[0-9]$' 10:53:15 ++ sed 's/^[ *]* //' 10:53:15 ++ [[ ! -s /tmp/.pyenv_versions ]] 10:53:15 +++ grep '^3' /tmp/.pyenv_versions 10:53:15 +++ sort -V 10:53:15 +++ tail -n 1 10:53:15 ++ py_version_xyz=3.11.10 10:53:15 ++ [[ -z 3.11.10 ]] 10:53:15 ++ echo 3.11.10 10:53:15 ++ return 0 10:53:15 + pyenv local 3.11.10 10:53:15 + local command 10:53:15 + command=local 10:53:15 + '[' 2 -gt 0 ']' 10:53:15 + shift 10:53:15 + case "$command" in 10:53:15 + command pyenv local 3.11.10 10:53:15 + for arg in "$@" 10:53:15 + case $arg in 10:53:15 + pkg_list+='tox ' 10:53:15 + for arg in "$@" 10:53:15 + case $arg in 10:53:15 + pkg_list+='virtualenv ' 10:53:15 + for arg in "$@" 10:53:15 + case $arg in 10:53:15 + pkg_list+='urllib3~=1.26.15 ' 10:53:15 + [[ -f /tmp/.toxenv ]] 10:53:15 + [[ ! -f /tmp/.toxenv ]] 10:53:15 + [[ -n '' ]] 10:53:15 + python3 -m venv /tmp/venv-PkOZ 10:53:19 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-PkOZ' 10:53:19 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-PkOZ 10:53:19 + echo /tmp/venv-PkOZ 10:53:19 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 10:53:19 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 10:53:19 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 10:53:19 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:53:19 + local 'pip_opts=--upgrade --quiet' 10:53:19 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 10:53:19 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 10:53:19 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 10:53:19 + [[ -n '' ]] 10:53:19 + [[ -n '' ]] 10:53:19 + lf-venv-pip-install /tmp/venv-PkOZ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:53:19 + local venv_python=/tmp/venv-PkOZ/bin/python3 10:53:19 + shift 10:53:19 + local upstream=https://pypi.org/simple 10:53:19 + /tmp/venv-PkOZ/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 10:53:24 + return 0 10:53:24 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 10:53:24 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 10:53:24 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 10:53:24 + lf-venv-pip-install /tmp/venv-PkOZ/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 10:53:24 + local venv_python=/tmp/venv-PkOZ/bin/python3 10:53:24 + shift 10:53:24 + local upstream=https://pypi.org/simple 10:53:24 + /tmp/venv-PkOZ/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 10:53:25 + return 0 10:53:25 + type python3 10:53:25 + true 10:53:25 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-PkOZ/bin to PATH' 10:53:25 lf-activate-venv(): INFO: Adding /tmp/venv-PkOZ/bin to PATH 10:53:25 + PATH=/tmp/venv-PkOZ/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 10:53:25 + return 0 10:53:25 + python3 --version 10:53:25 Python 3.11.10 10:53:25 + python3 -m pip --version 10:53:26 pip 26.2.2 from /tmp/venv-PkOZ/lib/python3.11/site-packages/pip (python 3.11) 10:53:26 + python3 -m pip freeze 10:53:26 cachetools==7.2.4 10:53:26 colorama==0.4.6 10:53:26 distlib==0.4.4 10:53:26 filelock==4.2.4 10:53:26 packaging==26.3 10:53:26 platformdirs==4.13.5 10:53:26 pluggy==1.7.0 10:53:26 pyproject-api==1.12.0 10:53:26 python-discovery==1.6.4 10:53:26 tomli_w==1.2.0 10:53:26 tox==4.67.1 10:53:26 typing_extensions==4.16.0 10:53:26 urllib3==1.26.20 10:53:26 virtualenv==21.14.13 10:53:26 [transportpce-tox-verify-chromium] $ /bin/sh -xe /tmp/jenkins11574529119306203568.sh 10:53:26 [EnvInject] - Injecting environment variables from a build step. 10:53:26 [EnvInject] - Injecting as environment variables the properties content 10:53:26 PARALLEL=True 10:53:26 10:53:26 [EnvInject] - Variables injected successfully. 10:53:26 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins11682549728305423492.sh 10:53:26 ---> tox-run.sh 10:53:26 + 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 10:53:26 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/tox 10:53:26 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/docs 10:53:26 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/tox 10:53:26 + cd /w/workspace/transportpce-tox-verify-chromium/. 10:53:26 + source /home/jenkins/lf-env.sh 10:53:26 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:53:26 ++ mktemp -d /tmp/venv-XXXX 10:53:26 + lf_venv=/tmp/venv-8LNS 10:53:26 + local venv_file=/tmp/.os_lf_venv 10:53:26 + local python=python3 10:53:26 + local options 10:53:26 + local set_path=true 10:53:26 + local install_args= 10:53:26 ++ 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 10:53:26 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:53:26 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:53:26 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 10:53:26 + true 10:53:26 + case $1 in 10:53:26 + venv_file=/tmp/.toxenv 10:53:26 + shift 2 10:53:26 + true 10:53:26 + case $1 in 10:53:26 + shift 10:53:26 + break 10:53:26 + case $python in 10:53:26 + local pkg_list= 10:53:26 + [[ -d /opt/pyenv ]] 10:53:26 + echo 'Setup pyenv:' 10:53:26 Setup pyenv: 10:53:26 + export PYENV_ROOT=/opt/pyenv 10:53:26 + PYENV_ROOT=/opt/pyenv 10:53:26 + 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 10:53:26 + 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 10:53:26 + pyenv versions 10:53:26 system 10:53:26 3.8.20 10:53:26 3.9.20 10:53:26 3.10.15 10:53:26 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 10:53:26 + command -v pyenv 10:53:26 ++ pyenv init - --no-rehash 10:53:26 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 10:53:26 for i in ${!paths[@]}; do 10:53:26 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 10:53:26 fi; done; 10:53:26 echo "${paths[*]}"'\'')" 10:53:26 export PATH="/opt/pyenv/shims:${PATH}" 10:53:26 export PYENV_SHELL=bash 10:53:26 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 10:53:26 pyenv() { 10:53:26 local command 10:53:26 command="${1:-}" 10:53:26 if [ "$#" -gt 0 ]; then 10:53:26 shift 10:53:26 fi 10:53:26 10:53:26 case "$command" in 10:53:26 rehash|shell) 10:53:26 eval "$(pyenv "sh-$command" "$@")" 10:53:26 ;; 10:53:26 *) 10:53:26 command pyenv "$command" "$@" 10:53:26 ;; 10:53:26 esac 10:53:26 }' 10:53:26 +++ bash --norc -ec 'IFS=:; paths=($PATH); 10:53:26 for i in ${!paths[@]}; do 10:53:26 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 10:53:26 fi; done; 10:53:26 echo "${paths[*]}"' 10:53:26 ++ 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 10:53:26 ++ 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 10:53:26 ++ 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 10:53:26 ++ export PYENV_SHELL=bash 10:53:26 ++ PYENV_SHELL=bash 10:53:26 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 10:53:26 +++ complete -F _pyenv pyenv 10:53:26 ++ lf-pyver python3 10:53:26 ++ local py_version_xy=python3 10:53:26 ++ local py_version_xyz= 10:53:26 ++ sed 's/^[ *]* //' 10:53:26 ++ pyenv versions 10:53:26 ++ awk '{ print $1 }' 10:53:26 ++ local command 10:53:26 ++ command=versions 10:53:26 ++ '[' 1 -gt 0 ']' 10:53:26 ++ shift 10:53:26 ++ case "$command" in 10:53:26 ++ command pyenv versions 10:53:26 ++ grep -E '^[0-9.]*[0-9]$' 10:53:26 ++ [[ ! -s /tmp/.pyenv_versions ]] 10:53:26 +++ grep '^3' /tmp/.pyenv_versions 10:53:26 +++ sort -V 10:53:26 +++ tail -n 1 10:53:26 ++ py_version_xyz=3.11.10 10:53:26 ++ [[ -z 3.11.10 ]] 10:53:26 ++ echo 3.11.10 10:53:26 ++ return 0 10:53:26 + pyenv local 3.11.10 10:53:26 + local command 10:53:26 + command=local 10:53:26 + '[' 2 -gt 0 ']' 10:53:26 + shift 10:53:26 + case "$command" in 10:53:26 + command pyenv local 3.11.10 10:53:26 + for arg in "$@" 10:53:26 + case $arg in 10:53:26 + pkg_list+='tox ' 10:53:26 + for arg in "$@" 10:53:26 + case $arg in 10:53:26 + pkg_list+='virtualenv ' 10:53:26 + for arg in "$@" 10:53:26 + case $arg in 10:53:26 + pkg_list+='urllib3~=1.26.15 ' 10:53:26 + [[ -f /tmp/.toxenv ]] 10:53:26 ++ cat /tmp/.toxenv 10:53:26 + lf_venv=/tmp/venv-PkOZ 10:53:26 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-PkOZ from' file:/tmp/.toxenv 10:53:26 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-PkOZ from file:/tmp/.toxenv 10:53:26 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 10:53:26 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:53:26 + local 'pip_opts=--upgrade --quiet' 10:53:26 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 10:53:26 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 10:53:26 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 10:53:26 + [[ -n '' ]] 10:53:26 + [[ -n '' ]] 10:53:26 + lf-venv-pip-install /tmp/venv-PkOZ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:53:26 + local venv_python=/tmp/venv-PkOZ/bin/python3 10:53:26 + shift 10:53:26 + local upstream=https://pypi.org/simple 10:53:26 + /tmp/venv-PkOZ/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 10:53:27 + return 0 10:53:27 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 10:53:27 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 10:53:27 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 10:53:27 + lf-venv-pip-install /tmp/venv-PkOZ/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 10:53:27 + local venv_python=/tmp/venv-PkOZ/bin/python3 10:53:27 + shift 10:53:27 + local upstream=https://pypi.org/simple 10:53:27 + /tmp/venv-PkOZ/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 10:53:29 + return 0 10:53:29 + type python3 10:53:29 + true 10:53:29 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-PkOZ/bin to PATH' 10:53:29 lf-activate-venv(): INFO: Adding /tmp/venv-PkOZ/bin to PATH 10:53:29 + PATH=/tmp/venv-PkOZ/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 10:53:29 + return 0 10:53:29 + [[ -d /opt/pyenv ]] 10:53:29 + echo '---> Setting up pyenv' 10:53:29 ---> Setting up pyenv 10:53:29 + export PYENV_ROOT=/opt/pyenv 10:53:29 + PYENV_ROOT=/opt/pyenv 10:53:29 + export PATH=/opt/pyenv/bin:/tmp/venv-PkOZ/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 10:53:29 + PATH=/opt/pyenv/bin:/tmp/venv-PkOZ/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 10:53:29 ++ pwd 10:53:29 + PYTHONPATH=/w/workspace/transportpce-tox-verify-chromium 10:53:29 + export PYTHONPATH 10:53:29 + export TOX_TESTENV_PASSENV=PYTHONPATH 10:53:29 + TOX_TESTENV_PASSENV=PYTHONPATH 10:53:29 + tox --version 10:53:29 4.67.1 from /tmp/venv-PkOZ/lib/python3.11/site-packages/tox/__init__.py 10:53:29 + PARALLEL=True 10:53:29 + TOX_OPTIONS_LIST= 10:53:29 + [[ -n '' ]] 10:53:29 + case ${PARALLEL,,} in 10:53:29 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 10:53:29 + tox --parallel auto --parallel-live 10:53:29 + tee -a /w/workspace/transportpce-tox-verify-chromium/archives/tox/tox.log 10:53:31 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 10:53:31 docs: install_deps> python -I -m pip install -r docs/requirements.txt 10:53:31 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:53:31 checkbashisms: freeze> python -m pip freeze --all 10:53:32 checkbashisms: pip==26.2.2,setuptools==84.2.1 10:53:32 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 10:53:32 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-chromium/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 10:53:32 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 10:53:33 checkbashisms: OK ✔ in 3.27 seconds 10:53:33 pre-commit: install_deps> python -I -m pip install pre-commit 10:53:36 pre-commit: freeze> python -m pip freeze --all 10:53:36 pre-commit: cfgv==3.5.0,distlib==0.4.4,filelock==4.2.4,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.2,platformdirs==4.13.5,pre_commit==4.7.0,python-discovery==1.6.4,PyYAML==6.0.3,setuptools==84.2.1,virtualenv==21.14.13 10:53:36 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 10:53:36 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-chromium/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 10:53:36 /usr/bin/cpan 10:53:36 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run --all-files --show-diff-on-failure 10:53:36 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 10:53:37 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 10:53:37 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 10:53:38 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 10:53:38 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 10:53:38 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 10:53:39 buildcontroller: freeze> python -m pip freeze --all 10:53:39 buildcontroller: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:53:39 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh 10:53:39 + update-java-alternatives -l 10:53:39 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 10:53:39 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 10:53:39 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 10:53:39 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 10:53:39 update-alternatives: error: no alternatives for jaotc 10:53:39 update-alternatives: error: no alternatives for rmic 10:53:39 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 10:53:39 + java -version 10:53:39 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 10:53:39 + JAVA_VER=21.0 10:53:39 + echo 21.0 10:53:39 21.0 10:53:39 + javac -version 10:53:39 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 10:53:40 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 10:53:40 + JAVAC_VER=21.0 10:53:40 + echo 21.0 10:53:40 + [ 21.0 -ge 21 ] 10:53:40 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 10:53:40 21.0 10:53:40 No java21 or newer available 10:53:40 + echo No java21 or newer available 10:53:40 + exit 1 10:53:40 buildcontroller: exit 1 (0.65 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh pid=2814 10:53:40 buildcontroller: FAIL ✖ in 10.14 seconds 10:53:40 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 10:53:40 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 10:53:40 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 10:53:41 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 10:53:41 [INFO] Once installed this environment will be reused. 10:53:41 [INFO] This may take a few minutes... 10:53:44 pylint: freeze> python -m pip freeze --all 10:53:44 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.2,platformdirs==4.13.5,pylint==4.1.3,setuptools==84.2.1,tomlkit==0.15.2 10:53:44 pylint: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 10:53:45 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 10:53:45 [INFO] Once installed this environment will be reused. 10:53:45 [INFO] This may take a few minutes... 10:53:45 docs-linkcheck: freeze> python -m pip freeze --all 10:53:45 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.10.19,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.58.6,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.4.0,packaging==26.3,picobox==4.0.0,pip==26.2.2,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.2.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==9.1.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.2.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==2.0.0,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,ub-needs-exchange==1.1.0,ub-project==1.1.0,urllib3==2.8.0 10:53:45 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/linkcheck 10:53:46 docs: freeze> python -m pip freeze --all 10:53:46 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.10.19,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.58.6,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.4.0,packaging==26.3,picobox==4.0.0,pip==26.2.2,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.2.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==9.1.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.2.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==2.0.0,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,ub-needs-exchange==1.1.0,ub-project==1.1.0,urllib3==2.8.0 10:53:46 docs: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-chromium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-chromium/docs/_build/html 10:53:49 docs: OK ✔ in 18.89 seconds 10:53:49 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:53:49 docs-linkcheck: OK ✔ in 19.13 seconds 10:53:49 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:53:50 [INFO] Installing environment for https://github.com/hhatto/autopep8. 10:53:50 [INFO] Once installed this environment will be reused. 10:53:50 [INFO] This may take a few minutes... 10:53:54 [INFO] Installing environment for https://github.com/perltidy/perltidy. 10:53:54 [INFO] Once installed this environment will be reused. 10:53:54 [INFO] This may take a few minutes... 10:53:55 build_karaf_tests121: freeze> python -m pip freeze --all 10:53:55 build_karaf_tests221: freeze> python -m pip freeze --all 10:53:55 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:53:55 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 10:53:55 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 10:53:55 ./build_karaf_for_tests.sh: 22: mvn: not found 10:53:55 build karaf in karaf121 with ./karaf121.env 10:53:55 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:53:55 build_karaf_tests121: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3329 10:53:55 build_karaf_tests121: FAIL ✖ in 6.81 seconds 10:53:55 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:53:55 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:53:55 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 10:53:55 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 10:53:55 ./build_karaf_for_tests.sh: 22: mvn: not found 10:53:55 build karaf in karaf221 with ./karaf221.env 10:53:55 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:53:55 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3346 10:53:56 build_karaf_tests221: FAIL ✖ in 6.7 seconds 10:53:56 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:54:02 ************* Module 2.2.1.test12_end2end 10:54:02 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 ************* Module test04_topo_extension 10:54:02 transportpce_tests/tapi/test04_topo_extension.py:361:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 ************* Module common.test_utils 10:54:02 transportpce_tests/common/test_utils.py:531:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 transportpce_tests/common/test_utils.py:557:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 transportpce_tests/common/test_utils.py:593:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 transportpce_tests/common/test_utils.py:611:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 transportpce_tests/common/test_utils.py:642:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 transportpce_tests/common/test_utils.py:663:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:02 10:54:02 ----------------------------------- 10:54:02 Your code has been rated at 9.99/10 10:54:02 10:54:02 build_karaf_tests71: freeze> python -m pip freeze --all 10:54:02 build_karaf_tests200: freeze> python -m pip freeze --all 10:54:02 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:02 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 10:54:02 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 10:54:02 ./build_karaf_for_tests.sh: 22: mvn: not found 10:54:02 build karaf in karaf71 with ./karaf71.env 10:54:02 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:54:02 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3474 10:54:02 build_karaf_tests71: FAIL ✖ in 6.64 seconds 10:54:02 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:02 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 10:54:02 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 10:54:02 ./build_karaf_for_tests.sh: 22: mvn: not found 10:54:02 build karaf in karafoc200 with ./karafoc200.env 10:54:02 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:54:02 build_karaf_tests200: exit 127 (0.02 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3489 10:54:02 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 10:54:02 [INFO] Once installed this environment will be reused. 10:54:02 [INFO] This may take a few minutes... 10:54:02 build_karaf_tests200: FAIL ✖ in 6.6 seconds 10:54:02 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:54:02 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:54:04 pylint: exit 1 (20.60 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=3212 10:54:05 pylint: FAIL ✖ in 24.75 seconds 10:54:05 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:54:06 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 10:54:06 [INFO] Once installed this environment will be reused. 10:54:06 [INFO] This may take a few minutes... 10:54:10 buildlighty: freeze> python -m pip freeze --all 10:54:10 trim trailing whitespace.................................................sims: freeze> python -m pip freeze --all 10:54:10 Passed 10:54:10 fix end of files.........................................................Passed 10:54:10 buildlighty: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:10 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh 10:54:10 ./build.sh: 7: mvn: not found 10:54:10 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 10:54:10 buildlighty: exit 9 (0.02 seconds) /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh pid=3717 10:54:10 buildlighty: FAIL ✖ in 8.27 seconds 10:54:10 sims: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:10 sims: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./install_lightynode.sh 10:54:10 Using lighynode version 22.1.0.7 10:54:10 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 10:54:10 check for added large files..............................................Passed 10:54:10 check for merge conflicts................................................Passed 10:54:10 check for case conflicts.................................................Passed 10:54:11 check json...............................................................Passed 10:54:11 mixed line ending........................................................Passed 10:54:11 Tabs remover.............................................................Passed 10:54:11 autopep8.................................................................Passed 10:54:13 perltidy.................................................................Passed 10:54:14 ShellCheck v0.11.0.......................................................Passed 10:54:18 prettier.................................................................Passed 10:54:19 yamllint.................................................................Passed 10:54:19 sims: OK ✔ in 11.27 seconds 10:54:19 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run gitlint-ci --hook-stage manual 10:54:20 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 10:54:20 [INFO] Once installed this environment will be reused. 10:54:20 [INFO] This may take a few minutes... 10:54:28 gitlint..................................................................Passed 10:54:52 pre-commit: OK ✔ in 55.2 seconds 10:54:52 testsPCE: freeze> python -m pip freeze --all 10:54:52 testsPCE: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.67.0,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.1.0,pbr==5.11.1,pillow==13.0.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==3.0.0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,tzdata==2026.5,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 10:54:52 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce 10:54:52 pytest -q transportpce_tests/pce/test01_pce.py 10:56:53 EEEEEEEEEEEEEEEEEEEE [100%] 10:56:56 ==================================== ERRORS ==================================== 10:56:56 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 10:56:56 10:56:56 cls = 10:56:56 10:56:56 @classmethod 10:56:56 def setUpClass(cls): 10:56:56 # pylint: disable=bare-except 10:56:56 sample_files_parsed = False 10:56:56 time.sleep(20) 10:56:56 try: 10:56:56 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:56:56 "..", "..", "sample_configs", "honeynode-topo.json") 10:56:56 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 10:56:56 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 10:56:56 10:56:56 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:56:56 "..", "..", "sample_configs", "NW-simple-topology.json") 10:56:56 10:56:56 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 10:56:56 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 10:56:56 10:56:56 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:56:56 "..", "..", "sample_configs", "NW-for-test-5-4.json") 10:56:56 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 10:56:56 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 10:56:56 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:56:56 "..", "..", "sample_configs", "pce_portmapping_121.json") 10:56:56 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 10:56:56 cls.port_mapping_data = port_mapping.read() 10:56:56 sample_files_parsed = True 10:56:56 except PermissionError as err: 10:56:56 print("Permission Error when trying to read sample files\n", err) 10:56:56 sys.exit(2) 10:56:56 except FileNotFoundError as err: 10:56:56 print("File Not found Error when trying to read sample files\n", err) 10:56:56 sys.exit(2) 10:56:56 except: 10:56:56 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 10:56:56 sys.exit(2) 10:56:56 finally: 10:56:56 if sample_files_parsed: 10:56:56 print("sample files content loaded") 10:56:56 10:56:56 > cls.processes = test_utils.start_tpce() 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 10:56:56 transportpce_tests/pce/test01_pce.py:93: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 def start_tpce(): 10:56:56 if 'NO_ODL_STARTUP' in os.environ: 10:56:56 print('No OpenDaylight instance to start!') 10:56:56 return [] 10:56:56 print('starting OpenDaylight...') 10:56:56 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:56:56 process = start_lighty() 10:56:56 else: 10:56:56 process = start_karaf() 10:56:56 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:56:56 print('OpenDaylight started !') 10:56:56 else: 10:56:56 print('OpenDaylight failed to start !') 10:56:56 shutdown_process(process) 10:56:56 for pid in process_list: 10:56:56 shutdown_process(pid) 10:56:56 > sys.exit(1) 10:56:56 E SystemExit: 1 10:56:56 10:56:56 transportpce_tests/common/test_utils.py:233: SystemExit 10:56:56 ---------------------------- Captured stdout setup ----------------------------- 10:56:56 sample files content loaded 10:56:56 starting OpenDaylight... 10:56:56 starting KARAF (karaf) TransportPCE build... 10:56:56 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:56:56 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d8572660> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d85abec0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32da9b82c0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d99b4180> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32da9ba020> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d8572480> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d85abec0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d85ab560> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32da9ba020> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d8572480> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d7e9e8e0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d85abec0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32da9ba020> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d7e9efc0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32da9ba020> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d8571da0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d8571ee0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d8571da0> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 10:56:56 10:56:56 cls = 10:56:56 func = . at 0x7f32d7e9d800> 10:56:56 when = 'setup' 10:56:56 reraise = (, ) 10:56:56 10:56:56 @classmethod 10:56:56 def from_call( 10:56:56 cls, 10:56:56 func: Callable[[], TResult], 10:56:56 when: Literal["collect", "setup", "call", "teardown"], 10:56:56 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:56:56 ) -> CallInfo[TResult]: 10:56:56 """Call func, wrapping the result in a CallInfo. 10:56:56 10:56:56 :param func: 10:56:56 The function to call. Called without arguments. 10:56:56 :type func: Callable[[], _pytest.runner.TResult] 10:56:56 :param when: 10:56:56 The phase in which the function is called. 10:56:56 :param reraise: 10:56:56 Exception or exceptions that shall propagate if raised by the 10:56:56 function, instead of being wrapped in the CallInfo. 10:56:56 """ 10:56:56 excinfo = None 10:56:56 instant = timing.Instant() 10:56:56 try: 10:56:56 > result: TResult | None = func() 10:56:56 ^^^^^^ 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:56:56 lambda: runtest_hook(item=item, **kwds), 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:56:56 return self._hookexec( 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:56:56 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:56:56 yield 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:56:56 return (yield) 10:56:56 ^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:56:56 item.session._setupstate.setup(item) 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:56:56 col.setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:56:56 super().setup() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:56:56 self._request._fillfixtures() 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:56:56 item.funcargs[argname] = self.getfixturevalue(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:56:56 fixturedef = self._get_active_fixturedef(argname) 10:56:56 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:56:56 fixturedef.execute(request=subrequest) 10:56:56 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:56:56 10:56:56 self = 10:56:56 request = > 10:56:56 10:56:56 def execute(self, request: SubRequest) -> FixtureValue: 10:56:56 """Return the value of this fixture, executing it if not cached.""" 10:56:56 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:56:56 # This needs to be done before checking if we have a cached value, since 10:56:56 # if a dependent fixture has their cache invalidated, e.g. due to 10:56:56 # parametrization, they finalize themselves and fixtures depending on it 10:56:56 # (which will likely include this fixture) setting `self.cached_result = None`. 10:56:56 # See #4871 10:56:56 requested_fixtures_that_should_finalize_us = [] 10:56:56 for argname in self.argnames: 10:56:56 fixturedef = request._get_active_fixturedef(argname) 10:56:56 # Saves requested fixtures in a list so we later can add our finalizer 10:56:56 # to them, ensuring that if a requested fixture gets torn down we get torn 10:56:56 # down first. This is generally handled by SetupState, but still currently 10:56:56 # needed when this fixture is not parametrized but depends on a parametrized 10:56:56 # fixture. 10:56:56 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:56:56 10:56:56 # Check for (and return) cached value/exception. 10:56:56 if self.cached_result is not None: 10:56:56 request_cache_key = self.cache_key(request) 10:56:56 cache_key = self.cached_result[1] 10:56:56 try: 10:56:56 # Attempt to make a normal == check: this might fail for objects 10:56:56 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:56:56 cache_hit = bool(request_cache_key == cache_key) 10:56:56 except (ValueError, RuntimeError): 10:56:56 # If the comparison raises, use 'is' as fallback. 10:56:56 cache_hit = request_cache_key is cache_key 10:56:56 10:56:56 if cache_hit: 10:56:56 if self.cached_result[2] is not None: 10:56:56 exc, exc_tb = self.cached_result[2] 10:56:56 raise exc.with_traceback(exc_tb) 10:56:56 else: 10:56:56 return self.cached_result[0] 10:56:56 # We have a previous but differently parametrized fixture instance 10:56:56 # so we need to tear it down before creating a new one. 10:56:56 self.finish(request) 10:56:56 assert self.cached_result is None 10:56:56 10:56:56 # Add finalizer to requested fixtures we saved previously. 10:56:56 # We make sure to do this after checking for cached value to avoid 10:56:56 # adding our finalizer multiple times. (#12135) 10:56:56 finalizer = functools.partial(self.finish, request=request) 10:56:56 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:56:56 parent_fixture.addfinalizer(finalizer) 10:56:56 10:56:56 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:56:56 # which is executed last. 10:56:56 > assert not self._finalizers 10:56:56 ^^^^^^^^^^^^^^^^^^^^ 10:56:56 E AssertionError 10:56:56 10:56:56 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:56:56 =========================== short test summary info ============================ 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 10:56:56 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 10:56:56 20 errors in 123.80s (0:02:03) 10:56:56 testsPCE: exit 1 (124.09 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce pid=4183 10:56:57 testsPCE: FAIL ✖ in 2 minutes 51.62 seconds 10:56:57 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:56:57 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:57:03 tests_tapi: freeze> python -m pip freeze --all 10:57:04 tests121: freeze> python -m pip freeze --all 10:57:04 tests_tapi: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:57:04 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi 10:57:04 using environment variables from ./karaf221.env 10:57:04 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 10:57:04 tests121: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:57:04 tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 10:57:04 using environment variables from ./karaf121.env 10:57:04 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 10:58:44 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 10:58:48 ==================================== ERRORS ==================================== 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 10:58:48 10:58:48 cls = 10:58:48 10:58:48 @classmethod 10:58:48 def setUpClass(cls): 10:58:48 > cls.processes = test_utils.start_tpce() 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 10:58:48 transportpce_tests/1.2.1/test01_portmapping.py:33: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 def start_tpce(): 10:58:48 if 'NO_ODL_STARTUP' in os.environ: 10:58:48 print('No OpenDaylight instance to start!') 10:58:48 return [] 10:58:48 print('starting OpenDaylight...') 10:58:48 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:58:48 process = start_lighty() 10:58:48 else: 10:58:48 process = start_karaf() 10:58:48 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:58:48 print('OpenDaylight started !') 10:58:48 else: 10:58:48 print('OpenDaylight failed to start !') 10:58:48 shutdown_process(process) 10:58:48 for pid in process_list: 10:58:48 shutdown_process(pid) 10:58:48 > sys.exit(1) 10:58:48 E SystemExit: 1 10:58:48 10:58:48 transportpce_tests/common/test_utils.py:233: SystemExit 10:58:48 ---------------------------- Captured stdout setup ----------------------------- 10:58:48 starting OpenDaylight... 10:58:48 starting KARAF (karaf121) TransportPCE build... 10:58:48 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:58:48 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e7b00> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c513c40> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92f647740> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92dc9cc20> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c513ba0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c513b00> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c513ec0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c513ce0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c511b20> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4ecb80> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4eca40> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4ecb80> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c512200> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 10:58:48 10:58:48 cls = 10:58:48 func = . at 0x7fa92c4e79c0> 10:58:48 when = 'setup' 10:58:48 reraise = (, ) 10:58:48 10:58:48 @classmethod 10:58:48 def from_call( 10:58:48 cls, 10:58:48 func: Callable[[], TResult], 10:58:48 when: Literal["collect", "setup", "call", "teardown"], 10:58:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:48 ) -> CallInfo[TResult]: 10:58:48 """Call func, wrapping the result in a CallInfo. 10:58:48 10:58:48 :param func: 10:58:48 The function to call. Called without arguments. 10:58:48 :type func: Callable[[], _pytest.runner.TResult] 10:58:48 :param when: 10:58:48 The phase in which the function is called. 10:58:48 :param reraise: 10:58:48 Exception or exceptions that shall propagate if raised by the 10:58:48 function, instead of being wrapped in the CallInfo. 10:58:48 """ 10:58:48 excinfo = None 10:58:48 instant = timing.Instant() 10:58:48 try: 10:58:48 > result: TResult | None = func() 10:58:48 ^^^^^^ 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:48 lambda: runtest_hook(item=item, **kwds), 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:48 return self._hookexec( 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:48 yield 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:48 return (yield) 10:58:48 ^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:48 item.session._setupstate.setup(item) 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:48 col.setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:48 super().setup() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:48 self._request._fillfixtures() 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:48 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:48 fixturedef = self._get_active_fixturedef(argname) 10:58:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:48 fixturedef.execute(request=subrequest) 10:58:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:48 10:58:48 self = 10:58:48 request = > 10:58:48 10:58:48 def execute(self, request: SubRequest) -> FixtureValue: 10:58:48 """Return the value of this fixture, executing it if not cached.""" 10:58:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:48 # This needs to be done before checking if we have a cached value, since 10:58:48 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:48 # parametrization, they finalize themselves and fixtures depending on it 10:58:48 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:48 # See #4871 10:58:48 requested_fixtures_that_should_finalize_us = [] 10:58:48 for argname in self.argnames: 10:58:48 fixturedef = request._get_active_fixturedef(argname) 10:58:48 # Saves requested fixtures in a list so we later can add our finalizer 10:58:48 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:48 # down first. This is generally handled by SetupState, but still currently 10:58:48 # needed when this fixture is not parametrized but depends on a parametrized 10:58:48 # fixture. 10:58:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:48 10:58:48 # Check for (and return) cached value/exception. 10:58:48 if self.cached_result is not None: 10:58:48 request_cache_key = self.cache_key(request) 10:58:48 cache_key = self.cached_result[1] 10:58:48 try: 10:58:48 # Attempt to make a normal == check: this might fail for objects 10:58:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:48 cache_hit = bool(request_cache_key == cache_key) 10:58:48 except (ValueError, RuntimeError): 10:58:48 # If the comparison raises, use 'is' as fallback. 10:58:48 cache_hit = request_cache_key is cache_key 10:58:48 10:58:48 if cache_hit: 10:58:48 if self.cached_result[2] is not None: 10:58:48 exc, exc_tb = self.cached_result[2] 10:58:48 raise exc.with_traceback(exc_tb) 10:58:48 else: 10:58:48 return self.cached_result[0] 10:58:48 # We have a previous but differently parametrized fixture instance 10:58:48 # so we need to tear it down before creating a new one. 10:58:48 self.finish(request) 10:58:48 assert self.cached_result is None 10:58:48 10:58:48 # Add finalizer to requested fixtures we saved previously. 10:58:48 # We make sure to do this after checking for cached value to avoid 10:58:48 # adding our finalizer multiple times. (#12135) 10:58:48 finalizer = functools.partial(self.finish, request=request) 10:58:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:48 parent_fixture.addfinalizer(finalizer) 10:58:48 10:58:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:48 # which is executed last. 10:58:48 > assert not self._finalizers 10:58:48 ^^^^^^^^^^^^^^^^^^^^ 10:58:48 E AssertionError 10:58:48 10:58:48 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:48 =========================== short test summary info ============================ 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 10:58:48 EERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 10:58:48 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 10:58:48 21 errors in 103.91s (0:01:43) 10:58:48 tests121: exit 1 (104.20 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 pid=4384 10:58:48 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 10:58:53 ==================================== ERRORS ==================================== 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 10:58:53 10:58:53 cls = 10:58:53 10:58:53 @classmethod 10:58:53 def setUpClass(cls): 10:58:53 cls.init_failed = False 10:58:53 os.environ['JAVA_MIN_MEM'] = '1024M' 10:58:53 os.environ['JAVA_MAX_MEM'] = '4096M' 10:58:53 > cls.processes = test_utils.start_tpce() 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 10:58:53 transportpce_tests/tapi/test01_abstracted_topology.py:148: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 def start_tpce(): 10:58:53 if 'NO_ODL_STARTUP' in os.environ: 10:58:53 print('No OpenDaylight instance to start!') 10:58:53 return [] 10:58:53 print('starting OpenDaylight...') 10:58:53 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:58:53 process = start_lighty() 10:58:53 else: 10:58:53 process = start_karaf() 10:58:53 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:58:53 print('OpenDaylight started !') 10:58:53 else: 10:58:53 print('OpenDaylight failed to start !') 10:58:53 shutdown_process(process) 10:58:53 for pid in process_list: 10:58:53 shutdown_process(pid) 10:58:53 > sys.exit(1) 10:58:53 E SystemExit: 1 10:58:53 10:58:53 transportpce_tests/common/test_utils.py:233: SystemExit 10:58:53 ---------------------------- Captured stdout setup ----------------------------- 10:58:53 starting OpenDaylight... 10:58:53 starting KARAF (karaf221) TransportPCE build... 10:58:53 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa014900> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053880> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fc691080> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fb7f7920> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa014b80> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fb7f7920> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbc40> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0518a0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbc40> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fb7f7920> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0537e0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbc40> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053240> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa052480> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053920> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbe20> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0537e0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa051760> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbe20> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbb00> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053240> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0516c0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40f9ffbe20> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa051ee0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa085760> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa051ee0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0840e0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa051ee0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0849a0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa084220> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa085300> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa084360> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa084d60> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0854e0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa084ae0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa085580> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa053ce0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa0862a0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 10:58:53 10:58:53 cls = 10:58:53 func = . at 0x7f40fa085bc0> 10:58:53 when = 'setup' 10:58:53 reraise = (, ) 10:58:53 10:58:53 @classmethod 10:58:53 def from_call( 10:58:53 cls, 10:58:53 func: Callable[[], TResult], 10:58:53 when: Literal["collect", "setup", "call", "teardown"], 10:58:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:58:53 ) -> CallInfo[TResult]: 10:58:53 """Call func, wrapping the result in a CallInfo. 10:58:53 10:58:53 :param func: 10:58:53 The function to call. Called without arguments. 10:58:53 :type func: Callable[[], _pytest.runner.TResult] 10:58:53 :param when: 10:58:53 The phase in which the function is called. 10:58:53 :param reraise: 10:58:53 Exception or exceptions that shall propagate if raised by the 10:58:53 function, instead of being wrapped in the CallInfo. 10:58:53 """ 10:58:53 excinfo = None 10:58:53 instant = timing.Instant() 10:58:53 try: 10:58:53 > result: TResult | None = func() 10:58:53 ^^^^^^ 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:58:53 lambda: runtest_hook(item=item, **kwds), 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:58:53 return self._hookexec( 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:58:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:58:53 yield 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:58:53 return (yield) 10:58:53 ^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:58:53 item.session._setupstate.setup(item) 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:58:53 col.setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:58:53 super().setup() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:58:53 self._request._fillfixtures() 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:58:53 item.funcargs[argname] = self.getfixturevalue(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:58:53 fixturedef = self._get_active_fixturedef(argname) 10:58:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:58:53 fixturedef.execute(request=subrequest) 10:58:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:58:53 10:58:53 self = 10:58:53 request = > 10:58:53 10:58:53 def execute(self, request: SubRequest) -> FixtureValue: 10:58:53 """Return the value of this fixture, executing it if not cached.""" 10:58:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:58:53 # This needs to be done before checking if we have a cached value, since 10:58:53 # if a dependent fixture has their cache invalidated, e.g. due to 10:58:53 # parametrization, they finalize themselves and fixtures depending on it 10:58:53 # (which will likely include this fixture) setting `self.cached_result = None`. 10:58:53 # See #4871 10:58:53 requested_fixtures_that_should_finalize_us = [] 10:58:53 for argname in self.argnames: 10:58:53 fixturedef = request._get_active_fixturedef(argname) 10:58:53 # Saves requested fixtures in a list so we later can add our finalizer 10:58:53 # to them, ensuring that if a requested fixture gets torn down we get torn 10:58:53 # down first. This is generally handled by SetupState, but still currently 10:58:53 # needed when this fixture is not parametrized but depends on a parametrized 10:58:53 # fixture. 10:58:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:58:53 10:58:53 # Check for (and return) cached value/exception. 10:58:53 if self.cached_result is not None: 10:58:53 request_cache_key = self.cache_key(request) 10:58:53 cache_key = self.cached_result[1] 10:58:53 try: 10:58:53 # Attempt to make a normal == check: this might fail for objects 10:58:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:58:53 cache_hit = bool(request_cache_key == cache_key) 10:58:53 except (ValueError, RuntimeError): 10:58:53 # If the comparison raises, use 'is' as fallback. 10:58:53 cache_hit = request_cache_key is cache_key 10:58:53 10:58:53 if cache_hit: 10:58:53 if self.cached_result[2] is not None: 10:58:53 exc, exc_tb = self.cached_result[2] 10:58:53 raise exc.with_traceback(exc_tb) 10:58:53 else: 10:58:53 return self.cached_result[0] 10:58:53 # We have a previous but differently parametrized fixture instance 10:58:53 # so we need to tear it down before creating a new one. 10:58:53 self.finish(request) 10:58:53 assert self.cached_result is None 10:58:53 10:58:53 # Add finalizer to requested fixtures we saved previously. 10:58:53 # We make sure to do this after checking for cached value to avoid 10:58:53 # adding our finalizer multiple times. (#12135) 10:58:53 finalizer = functools.partial(self.finish, request=request) 10:58:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:58:53 parent_fixture.addfinalizer(finalizer) 10:58:53 10:58:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:58:53 # which is executed last. 10:58:53 > assert not self._finalizers 10:58:53 ^^^^^^^^^^^^^^^^^^^^ 10:58:53 E AssertionError 10:58:53 10:58:53 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:58:53 =========================== short test summary info ============================ 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 10:58:53 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 10:58:53 51 errors in 109.38s (0:01:49) 10:58:53 tests121: FAIL ✖ in 1 minute 51.88 seconds 10:58:53 tests_tapi: exit 1 (109.65 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi pid=4373 10:58:54 tests_tapi: FAIL ✖ in 1 minute 57.23 seconds 10:58:54 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:58:54 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 10:59:00 tests221: freeze> python -m pip freeze --all 10:59:00 tests200: freeze> python -m pip freeze --all 10:59:00 tests221: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:59:00 tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 10:59:00 using environment variables from ./karaf221.env 10:59:00 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 10:59:00 tests200: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:59:00 tests200: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc200 10:59:00 using environment variables from ./karafoc200.env 10:59:00 pytest -q transportpce_tests/oc200/test01_portmapping.py 11:00:41 EEEEEEEEEEEEEEEEEEE [100%] 11:00:43 ==================================== ERRORS ==================================== 11:00:43 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 11:00:43 11:00:43 cls = 11:00:43 11:00:43 @classmethod 11:00:43 def setUpClass(cls): 11:00:43 > cls.processes = test_utils.start_tpce() 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 11:00:43 transportpce_tests/oc200/test01_portmapping.py:29: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 def start_tpce(): 11:00:43 if 'NO_ODL_STARTUP' in os.environ: 11:00:43 print('No OpenDaylight instance to start!') 11:00:43 return [] 11:00:43 print('starting OpenDaylight...') 11:00:43 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:00:43 process = start_lighty() 11:00:43 else: 11:00:43 process = start_karaf() 11:00:43 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:00:43 print('OpenDaylight started !') 11:00:43 else: 11:00:43 print('OpenDaylight failed to start !') 11:00:43 shutdown_process(process) 11:00:43 for pid in process_list: 11:00:43 shutdown_process(pid) 11:00:43 > sys.exit(1) 11:00:43 E SystemExit: 1 11:00:43 11:00:43 transportpce_tests/common/test_utils.py:233: SystemExit 11:00:43 ---------------------------- Captured stdout setup ----------------------------- 11:00:43 starting OpenDaylight... 11:00:43 starting KARAF (karafoc200) TransportPCE build... 11:00:43 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4ac3d80> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4b16ca0> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4ac3d80> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa626c900> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4af82c0> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa626c900> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4b17420> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4b16840> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 11:00:43 11:00:43 cls = 11:00:43 func = . at 0x7f6fa4af82c0> 11:00:43 when = 'setup' 11:00:43 reraise = (, ) 11:00:43 11:00:43 @classmethod 11:00:43 def from_call( 11:00:43 cls, 11:00:43 func: Callable[[], TResult], 11:00:43 when: Literal["collect", "setup", "call", "teardown"], 11:00:43 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:43 ) -> CallInfo[TResult]: 11:00:43 """Call func, wrapping the result in a CallInfo. 11:00:43 11:00:43 :param func: 11:00:43 The function to call. Called without arguments. 11:00:43 :type func: Callable[[], _pytest.runner.TResult] 11:00:43 :param when: 11:00:43 The phase in which the function is called. 11:00:43 :param reraise: 11:00:43 Exception or exceptions that shall propagate if raised by the 11:00:43 function, instead of being wrapped in the CallInfo. 11:00:43 """ 11:00:43 excinfo = None 11:00:43 instant = timing.Instant() 11:00:43 try: 11:00:43 > result: TResult | None = func() 11:00:43 ^^^^^^ 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:43 lambda: runtest_hook(item=item, **kwds), 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:43 return self._hookexec( 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:43 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:43 yield 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:43 return (yield) 11:00:43 ^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:43 item.session._setupstate.setup(item) 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:43 col.setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:43 super().setup() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:43 self._request._fillfixtures() 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:43 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:43 fixturedef = self._get_active_fixturedef(argname) 11:00:43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:43 fixturedef.execute(request=subrequest) 11:00:43 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:43 11:00:43 self = 11:00:43 request = > 11:00:43 11:00:43 def execute(self, request: SubRequest) -> FixtureValue: 11:00:43 """Return the value of this fixture, executing it if not cached.""" 11:00:43 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:43 # This needs to be done before checking if we have a cached value, since 11:00:43 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:43 # parametrization, they finalize themselves and fixtures depending on it 11:00:43 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:43 # See #4871 11:00:43 requested_fixtures_that_should_finalize_us = [] 11:00:43 for argname in self.argnames: 11:00:43 fixturedef = request._get_active_fixturedef(argname) 11:00:43 # Saves requested fixtures in a list so we later can add our finalizer 11:00:43 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:43 # down first. This is generally handled by SetupState, but still currently 11:00:43 # needed when this fixture is not parametrized but depends on a parametrized 11:00:43 # fixture. 11:00:43 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:43 11:00:43 # Check for (and return) cached value/exception. 11:00:43 if self.cached_result is not None: 11:00:43 request_cache_key = self.cache_key(request) 11:00:43 cache_key = self.cached_result[1] 11:00:43 try: 11:00:43 # Attempt to make a normal == check: this might fail for objects 11:00:43 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:43 cache_hit = bool(request_cache_key == cache_key) 11:00:43 except (ValueError, RuntimeError): 11:00:43 # If the comparison raises, use 'is' as fallback. 11:00:43 cache_hit = request_cache_key is cache_key 11:00:43 11:00:43 if cache_hit: 11:00:43 if self.cached_result[2] is not None: 11:00:43 exc, exc_tb = self.cached_result[2] 11:00:43 raise exc.with_traceback(exc_tb) 11:00:43 else: 11:00:43 return self.cached_result[0] 11:00:43 # We have a previous but differently parametrized fixture instance 11:00:43 # so we need to tear it down before creating a new one. 11:00:43 self.finish(request) 11:00:43 assert self.cached_result is None 11:00:43 11:00:43 # Add finalizer to requested fixtures we saved previously. 11:00:43 # We make sure to do this after checking for cached value to avoid 11:00:43 # adding our finalizer multiple times. (#12135) 11:00:43 finalizer = functools.partial(self.finish, request=request) 11:00:43 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:43 parent_fixture.addfinalizer(finalizer) 11:00:43 11:00:43 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:43 # which is executed last. 11:00:43 > assert not self._finalizers 11:00:43 ^^^^^^^^^^^^^^^^^^^^ 11:00:43 E AssertionError 11:00:43 11:00:43 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:43 =========================== short test summary info ============================ 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 11:00:43 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 11:00:43 10 errors in 101.84s (0:01:41) 11:00:43 tests200: exit 1 (102.12 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc200 pid=4565 11:00:43 Etests200: FAIL ✖ in 1 minute 49.29 seconds 11:00:43 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 11:00:43 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 11:00:47 ==================================== ERRORS ==================================== 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 11:00:47 11:00:47 cls = 11:00:47 11:00:47 @classmethod 11:00:47 def setUpClass(cls): 11:00:47 > cls.processes = test_utils.start_tpce() 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 11:00:47 transportpce_tests/2.2.1/test01_portmapping.py:33: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 def start_tpce(): 11:00:47 if 'NO_ODL_STARTUP' in os.environ: 11:00:47 print('No OpenDaylight instance to start!') 11:00:47 return [] 11:00:47 print('starting OpenDaylight...') 11:00:47 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:00:47 process = start_lighty() 11:00:47 else: 11:00:47 process = start_karaf() 11:00:47 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:00:47 print('OpenDaylight started !') 11:00:47 else: 11:00:47 print('OpenDaylight failed to start !') 11:00:47 shutdown_process(process) 11:00:47 for pid in process_list: 11:00:47 shutdown_process(pid) 11:00:47 > sys.exit(1) 11:00:47 E SystemExit: 1 11:00:47 11:00:47 transportpce_tests/common/test_utils.py:233: SystemExit 11:00:47 ---------------------------- Captured stdout setup ----------------------------- 11:00:47 starting OpenDaylight... 11:00:47 starting KARAF (karaf221) TransportPCE build... 11:00:47 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:00:47 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a66520> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a9b100> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f147425c860> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bf60> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bd80> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bf60> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a9b240> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bd80> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a9b380> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a9b240> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bf60> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bd80> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a9b880> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a9b420> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a65300> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a651c0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a5bf60> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a651c0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ed300> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a651c0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ee660> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728eda80> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ed260> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ee7a0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ec040> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ee3e0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f14728ef600> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 11:00:47 11:00:47 cls = 11:00:47 func = . at 0x7f1472a64fe0> 11:00:47 when = 'setup' 11:00:47 reraise = (, ) 11:00:47 11:00:47 @classmethod 11:00:47 def from_call( 11:00:47 cls, 11:00:47 func: Callable[[], TResult], 11:00:47 when: Literal["collect", "setup", "call", "teardown"], 11:00:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:00:47 ) -> CallInfo[TResult]: 11:00:47 """Call func, wrapping the result in a CallInfo. 11:00:47 11:00:47 :param func: 11:00:47 The function to call. Called without arguments. 11:00:47 :type func: Callable[[], _pytest.runner.TResult] 11:00:47 :param when: 11:00:47 The phase in which the function is called. 11:00:47 :param reraise: 11:00:47 Exception or exceptions that shall propagate if raised by the 11:00:47 function, instead of being wrapped in the CallInfo. 11:00:47 """ 11:00:47 excinfo = None 11:00:47 instant = timing.Instant() 11:00:47 try: 11:00:47 > result: TResult | None = func() 11:00:47 ^^^^^^ 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:00:47 lambda: runtest_hook(item=item, **kwds), 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:00:47 return self._hookexec( 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:00:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:00:47 yield 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:00:47 return (yield) 11:00:47 ^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:00:47 item.session._setupstate.setup(item) 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:00:47 col.setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:00:47 super().setup() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:00:47 self._request._fillfixtures() 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:00:47 item.funcargs[argname] = self.getfixturevalue(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:00:47 fixturedef = self._get_active_fixturedef(argname) 11:00:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:00:47 fixturedef.execute(request=subrequest) 11:00:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:00:47 11:00:47 self = 11:00:47 request = > 11:00:47 11:00:47 def execute(self, request: SubRequest) -> FixtureValue: 11:00:47 """Return the value of this fixture, executing it if not cached.""" 11:00:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:00:47 # This needs to be done before checking if we have a cached value, since 11:00:47 # if a dependent fixture has their cache invalidated, e.g. due to 11:00:47 # parametrization, they finalize themselves and fixtures depending on it 11:00:47 # (which will likely include this fixture) setting `self.cached_result = None`. 11:00:47 # See #4871 11:00:47 requested_fixtures_that_should_finalize_us = [] 11:00:47 for argname in self.argnames: 11:00:47 fixturedef = request._get_active_fixturedef(argname) 11:00:47 # Saves requested fixtures in a list so we later can add our finalizer 11:00:47 # to them, ensuring that if a requested fixture gets torn down we get torn 11:00:47 # down first. This is generally handled by SetupState, but still currently 11:00:47 # needed when this fixture is not parametrized but depends on a parametrized 11:00:47 # fixture. 11:00:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:00:47 11:00:47 # Check for (and return) cached value/exception. 11:00:47 if self.cached_result is not None: 11:00:47 request_cache_key = self.cache_key(request) 11:00:47 cache_key = self.cached_result[1] 11:00:47 try: 11:00:47 # Attempt to make a normal == check: this might fail for objects 11:00:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:00:47 cache_hit = bool(request_cache_key == cache_key) 11:00:47 except (ValueError, RuntimeError): 11:00:47 # If the comparison raises, use 'is' as fallback. 11:00:47 cache_hit = request_cache_key is cache_key 11:00:47 11:00:47 if cache_hit: 11:00:47 if self.cached_result[2] is not None: 11:00:47 exc, exc_tb = self.cached_result[2] 11:00:47 raise exc.with_traceback(exc_tb) 11:00:47 else: 11:00:47 return self.cached_result[0] 11:00:47 # We have a previous but differently parametrized fixture instance 11:00:47 # so we need to tear it down before creating a new one. 11:00:47 self.finish(request) 11:00:47 assert self.cached_result is None 11:00:47 11:00:47 # Add finalizer to requested fixtures we saved previously. 11:00:47 # We make sure to do this after checking for cached value to avoid 11:00:47 # adding our finalizer multiple times. (#12135) 11:00:47 finalizer = functools.partial(self.finish, request=request) 11:00:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:00:47 parent_fixture.addfinalizer(finalizer) 11:00:47 11:00:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:00:47 # which is executed last. 11:00:47 > assert not self._finalizers 11:00:47 ^^^^^^^^^^^^^^^^^^^^ 11:00:47 E AssertionError 11:00:47 11:00:47 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:00:47 =========================== short test summary info ============================ 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 11:00:47 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 11:00:47 35 errors in 106.34s (0:01:46) 11:00:47 tests221: exit 1 (106.62 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 pid=4554 11:00:47 tests221: FAIL ✖ in 1 minute 53.74 seconds 11:00:47 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-chromium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-chromium/tests/test-requirements.txt 11:00:49 tests71: freeze> python -m pip freeze --all 11:00:50 tests71: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 11:00:50 tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 11:00:50 using environment variables from ./karaf71.env 11:00:50 pytest -q transportpce_tests/7.1/test01_portmapping.py 11:00:53 tests_hybrid: freeze> python -m pip freeze --all 11:00:53 tests_hybrid: bcrypt==5.0.0,certifi==2026.10.19,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 11:00:53 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid 11:00:53 using environment variables from ./karaf221.env 11:00:53 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 11:02:30 EEEEEEEEEEEE [100%] 11:02:32 ==================================== ERRORS ==================================== 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 11:02:32 11:02:32 cls = 11:02:32 11:02:32 @classmethod 11:02:32 def setUpClass(cls): 11:02:32 > cls.processes = test_utils.start_tpce() 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 11:02:32 transportpce_tests/7.1/test01_portmapping.py:32: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 def start_tpce(): 11:02:32 if 'NO_ODL_STARTUP' in os.environ: 11:02:32 print('No OpenDaylight instance to start!') 11:02:32 return [] 11:02:32 print('starting OpenDaylight...') 11:02:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:02:32 process = start_lighty() 11:02:32 else: 11:02:32 process = start_karaf() 11:02:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:02:32 print('OpenDaylight started !') 11:02:32 else: 11:02:32 print('OpenDaylight failed to start !') 11:02:32 shutdown_process(process) 11:02:32 for pid in process_list: 11:02:32 shutdown_process(pid) 11:02:32 > sys.exit(1) 11:02:32 E SystemExit: 1 11:02:32 11:02:32 transportpce_tests/common/test_utils.py:233: SystemExit 11:02:32 ---------------------------- Captured stdout setup ----------------------------- 11:02:32 starting OpenDaylight... 11:02:32 starting KARAF (karaf71) TransportPCE build... 11:02:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27a4b11c0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27a4db6a0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27cb9ce00> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27bc694e0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27a4b19e0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27bc694e0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27a4da980> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27a4dac00> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27bc694e0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27a4db560> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 11:02:32 11:02:32 cls = 11:02:32 func = . at 0x7fd27bc694e0> 11:02:32 when = 'setup' 11:02:32 reraise = (, ) 11:02:32 11:02:32 @classmethod 11:02:32 def from_call( 11:02:32 cls, 11:02:32 func: Callable[[], TResult], 11:02:32 when: Literal["collect", "setup", "call", "teardown"], 11:02:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:32 ) -> CallInfo[TResult]: 11:02:32 """Call func, wrapping the result in a CallInfo. 11:02:32 11:02:32 :param func: 11:02:32 The function to call. Called without arguments. 11:02:32 :type func: Callable[[], _pytest.runner.TResult] 11:02:32 :param when: 11:02:32 The phase in which the function is called. 11:02:32 :param reraise: 11:02:32 Exception or exceptions that shall propagate if raised by the 11:02:32 function, instead of being wrapped in the CallInfo. 11:02:32 """ 11:02:32 excinfo = None 11:02:32 instant = timing.Instant() 11:02:32 try: 11:02:32 > result: TResult | None = func() 11:02:32 ^^^^^^ 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:32 lambda: runtest_hook(item=item, **kwds), 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:32 return self._hookexec( 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:32 yield 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:32 return (yield) 11:02:32 ^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:32 item.session._setupstate.setup(item) 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:32 col.setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:32 super().setup() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:32 self._request._fillfixtures() 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:32 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:32 fixturedef = self._get_active_fixturedef(argname) 11:02:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:32 fixturedef.execute(request=subrequest) 11:02:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:32 11:02:32 self = 11:02:32 request = > 11:02:32 11:02:32 def execute(self, request: SubRequest) -> FixtureValue: 11:02:32 """Return the value of this fixture, executing it if not cached.""" 11:02:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:32 # This needs to be done before checking if we have a cached value, since 11:02:32 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:32 # parametrization, they finalize themselves and fixtures depending on it 11:02:32 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:32 # See #4871 11:02:32 requested_fixtures_that_should_finalize_us = [] 11:02:32 for argname in self.argnames: 11:02:32 fixturedef = request._get_active_fixturedef(argname) 11:02:32 # Saves requested fixtures in a list so we later can add our finalizer 11:02:32 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:32 # down first. This is generally handled by SetupState, but still currently 11:02:32 # needed when this fixture is not parametrized but depends on a parametrized 11:02:32 # fixture. 11:02:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:32 11:02:32 # Check for (and return) cached value/exception. 11:02:32 if self.cached_result is not None: 11:02:32 request_cache_key = self.cache_key(request) 11:02:32 cache_key = self.cached_result[1] 11:02:32 try: 11:02:32 # Attempt to make a normal == check: this might fail for objects 11:02:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:32 cache_hit = bool(request_cache_key == cache_key) 11:02:32 except (ValueError, RuntimeError): 11:02:32 # If the comparison raises, use 'is' as fallback. 11:02:32 cache_hit = request_cache_key is cache_key 11:02:32 11:02:32 if cache_hit: 11:02:32 if self.cached_result[2] is not None: 11:02:32 exc, exc_tb = self.cached_result[2] 11:02:32 raise exc.with_traceback(exc_tb) 11:02:32 else: 11:02:32 return self.cached_result[0] 11:02:32 # We have a previous but differently parametrized fixture instance 11:02:32 # so we need to tear it down before creating a new one. 11:02:32 self.finish(request) 11:02:32 assert self.cached_result is None 11:02:32 11:02:32 # Add finalizer to requested fixtures we saved previously. 11:02:32 # We make sure to do this after checking for cached value to avoid 11:02:32 # adding our finalizer multiple times. (#12135) 11:02:32 finalizer = functools.partial(self.finish, request=request) 11:02:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:32 parent_fixture.addfinalizer(finalizer) 11:02:32 11:02:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:32 # which is executed last. 11:02:32 > assert not self._finalizers 11:02:32 ^^^^^^^^^^^^^^^^^^^^ 11:02:32 E AssertionError 11:02:32 11:02:32 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:32 =========================== short test summary info ============================ 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 11:02:32 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 11:02:32 12 errors in 102.30s (0:01:42) 11:02:32 tests71: exit 1 (102.58 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 pid=4694 11:02:34 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 11:02:42 ==================================== ERRORS ==================================== 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 11:02:42 11:02:42 cls = 11:02:42 11:02:42 @classmethod 11:02:42 def setUpClass(cls): 11:02:42 > cls.processes = test_utils.start_tpce() 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 11:02:42 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 def start_tpce(): 11:02:42 if 'NO_ODL_STARTUP' in os.environ: 11:02:42 print('No OpenDaylight instance to start!') 11:02:42 return [] 11:02:42 print('starting OpenDaylight...') 11:02:42 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:02:42 process = start_lighty() 11:02:42 else: 11:02:42 process = start_karaf() 11:02:42 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:02:42 print('OpenDaylight started !') 11:02:42 else: 11:02:42 print('OpenDaylight failed to start !') 11:02:42 shutdown_process(process) 11:02:42 for pid in process_list: 11:02:42 shutdown_process(pid) 11:02:42 > sys.exit(1) 11:02:42 E SystemExit: 1 11:02:42 11:02:42 transportpce_tests/common/test_utils.py:233: SystemExit 11:02:42 ---------------------------- Captured stdout setup ----------------------------- 11:02:42 starting OpenDaylight... 11:02:42 starting KARAF (karaf221) TransportPCE build... 11:02:42 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793ec0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7dfa60> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790bf9bba0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a792a20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7defc0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790ce81580> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7defc0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7df4c0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793ec0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790ce81580> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7df4c0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793ec0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7defc0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7df4c0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793240> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7df240> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793240> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793ec0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a793ec0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7df240> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a5428e0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7defc0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a5428e0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a541a80> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a541a80> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a542520> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a542de0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a542020> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a542fc0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a542020> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a5431a0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a5431a0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a541da0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a5434c0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a543560> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a5436a0> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a542f20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a543880> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 11:02:42 11:02:42 cls = 11:02:42 func = . at 0x7f790a7def20> 11:02:42 when = 'setup' 11:02:42 reraise = (, ) 11:02:42 11:02:42 @classmethod 11:02:42 def from_call( 11:02:42 cls, 11:02:42 func: Callable[[], TResult], 11:02:42 when: Literal["collect", "setup", "call", "teardown"], 11:02:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:02:42 ) -> CallInfo[TResult]: 11:02:42 """Call func, wrapping the result in a CallInfo. 11:02:42 11:02:42 :param func: 11:02:42 The function to call. Called without arguments. 11:02:42 :type func: Callable[[], _pytest.runner.TResult] 11:02:42 :param when: 11:02:42 The phase in which the function is called. 11:02:42 :param reraise: 11:02:42 Exception or exceptions that shall propagate if raised by the 11:02:42 function, instead of being wrapped in the CallInfo. 11:02:42 """ 11:02:42 excinfo = None 11:02:42 instant = timing.Instant() 11:02:42 try: 11:02:42 > result: TResult | None = func() 11:02:42 ^^^^^^ 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:02:42 lambda: runtest_hook(item=item, **kwds), 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:02:42 return self._hookexec( 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:02:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:02:42 yield 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:02:42 return (yield) 11:02:42 ^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:02:42 item.session._setupstate.setup(item) 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:02:42 col.setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:02:42 super().setup() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:02:42 self._request._fillfixtures() 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:02:42 item.funcargs[argname] = self.getfixturevalue(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:02:42 fixturedef = self._get_active_fixturedef(argname) 11:02:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:02:42 fixturedef.execute(request=subrequest) 11:02:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:02:42 11:02:42 self = 11:02:42 request = > 11:02:42 11:02:42 def execute(self, request: SubRequest) -> FixtureValue: 11:02:42 """Return the value of this fixture, executing it if not cached.""" 11:02:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:02:42 # This needs to be done before checking if we have a cached value, since 11:02:42 # if a dependent fixture has their cache invalidated, e.g. due to 11:02:42 # parametrization, they finalize themselves and fixtures depending on it 11:02:42 # (which will likely include this fixture) setting `self.cached_result = None`. 11:02:42 # See #4871 11:02:42 requested_fixtures_that_should_finalize_us = [] 11:02:42 for argname in self.argnames: 11:02:42 fixturedef = request._get_active_fixturedef(argname) 11:02:42 # Saves requested fixtures in a list so we later can add our finalizer 11:02:42 # to them, ensuring that if a requested fixture gets torn down we get torn 11:02:42 # down first. This is generally handled by SetupState, but still currently 11:02:42 # needed when this fixture is not parametrized but depends on a parametrized 11:02:42 # fixture. 11:02:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:02:42 11:02:42 # Check for (and return) cached value/exception. 11:02:42 if self.cached_result is not None: 11:02:42 request_cache_key = self.cache_key(request) 11:02:42 cache_key = self.cached_result[1] 11:02:42 try: 11:02:42 # Attempt to make a normal == check: this might fail for objects 11:02:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:02:42 cache_hit = bool(request_cache_key == cache_key) 11:02:42 except (ValueError, RuntimeError): 11:02:42 # If the comparison raises, use 'is' as fallback. 11:02:42 cache_hit = request_cache_key is cache_key 11:02:42 11:02:42 if cache_hit: 11:02:42 if self.cached_result[2] is not None: 11:02:42 exc, exc_tb = self.cached_result[2] 11:02:42 raise exc.with_traceback(exc_tb) 11:02:42 else: 11:02:42 return self.cached_result[0] 11:02:42 # We have a previous but differently parametrized fixture instance 11:02:42 # so we need to tear it down before creating a new one. 11:02:42 self.finish(request) 11:02:42 assert self.cached_result is None 11:02:42 11:02:42 # Add finalizer to requested fixtures we saved previously. 11:02:42 # We make sure to do this after checking for cached value to avoid 11:02:42 # adding our finalizer multiple times. (#12135) 11:02:42 finalizer = functools.partial(self.finish, request=request) 11:02:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:02:42 parent_fixture.addfinalizer(finalizer) 11:02:42 11:02:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:02:42 # which is executed last. 11:02:42 > assert not self._finalizers 11:02:42 ^^^^^^^^^^^^^^^^^^^^ 11:02:42 E AssertionError 11:02:42 11:02:42 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:02:42 =========================== short test summary info ============================ 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 11:02:42 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 11:02:42 51 errors in 108.86s (0:01:48) 11:02:43 tests71: FAIL ✖ in 1 minute 49.62 seconds 11:02:43 tests_hybrid: exit 1 (109.11 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid pid=4710 11:02:43 buildcontroller: FAIL code 1 (10.14=setup[9.48]+cmd[0.65] seconds) 11:02:43 sims: OK (11.27=setup[8.21]+cmd[3.06] seconds) 11:02:43 build_karaf_tests121: FAIL code 127 (6.81=setup[6.81]+cmd[0.00] seconds) 11:02:43 testsPCE: FAIL code 1 (171.62=setup[47.52]+cmd[124.09] seconds) 11:02:43 tests121: FAIL code 1 (111.88=setup[7.68]+cmd[104.20] seconds) 11:02:43 build_karaf_tests221: FAIL code 127 (6.70=setup[6.69]+cmd[0.00] seconds) 11:02:43 tests_tapi: FAIL code 1 (117.23=setup[7.57]+cmd[109.65] seconds) 11:02:43 tests221: FAIL code 1 (113.74=setup[7.12]+cmd[106.62] seconds) 11:02:43 build_karaf_tests71: FAIL code 127 (6.64=setup[6.64]+cmd[0.00] seconds) 11:02:43 tests71: FAIL code 1 (109.62=setup[7.04]+cmd[102.58] seconds) 11:02:43 build_karaf_tests200: FAIL code 127 (6.60=setup[6.58]+cmd[0.02] seconds) 11:02:43 tests200: FAIL code 1 (109.29=setup[7.18]+cmd[102.12] seconds) 11:02:43 tests_hybrid: FAIL code 1 (115.51=setup[6.39]+cmd[109.11] seconds) 11:02:43 buildlighty: FAIL code 9 (8.27=setup[8.25]+cmd[0.02] seconds) 11:02:43 docs: OK (18.89=setup[16.68]+cmd[2.21] seconds) 11:02:43 docs-linkcheck: OK (19.13=setup[15.81]+cmd[3.32] seconds) 11:02:43 checkbashisms: OK (3.26=setup[2.02]+cmd[0.00,0.04,1.20] seconds) 11:02:43 pre-commit: OK (55.20=setup[3.46]+cmd[0.01,0.01,43.03,8.70] seconds) 11:02:43 pylint: FAIL code 1 (24.75=setup[4.15]+cmd[20.60] seconds) 11:02:43 evaluation failed :( (553.04 seconds) 11:02:43 + tox_status=1 11:02:43 + echo '---> Completed tox runs' 11:02:43 ---> Completed tox runs 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/build_karaf_tests121/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=build_karaf_tests121 11:02:43 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests121 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/build_karaf_tests200/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=build_karaf_tests200 11:02:43 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests200 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/build_karaf_tests221/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=build_karaf_tests221 11:02:43 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests221 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/build_karaf_tests71/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=build_karaf_tests71 11:02:43 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests71 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/buildcontroller/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=buildcontroller 11:02:43 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildcontroller 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/buildlighty/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=buildlighty 11:02:43 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildlighty 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/checkbashisms/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=checkbashisms 11:02:43 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/checkbashisms 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/docs-linkcheck/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=docs-linkcheck 11:02:43 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs-linkcheck 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/docs/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=docs 11:02:43 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/pre-commit/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=pre-commit 11:02:43 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pre-commit 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/pylint/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=pylint 11:02:43 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pylint 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/sims/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=sims 11:02:43 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/sims 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/tests121/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=tests121 11:02:43 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests121 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/tests200/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=tests200 11:02:43 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests200 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/tests221/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=tests221 11:02:43 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests221 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/tests71/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=tests71 11:02:43 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests71 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/testsPCE/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=testsPCE 11:02:43 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/testsPCE 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/tests_hybrid/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=tests_hybrid 11:02:43 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_hybrid 11:02:43 + for i in .tox/*/log 11:02:43 ++ echo .tox/tests_tapi/log 11:02:43 ++ awk -F/ '{print $2}' 11:02:43 + tox_env=tests_tapi 11:02:43 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_tapi 11:02:43 + DOC_DIR=docs/_build/html 11:02:43 + [[ -d docs/_build/html ]] 11:02:43 + echo '---> Archiving generated docs' 11:02:43 ---> Archiving generated docs 11:02:43 + mv docs/_build/html /w/workspace/transportpce-tox-verify-chromium/archives/docs 11:02:43 + echo '---> tox-run.sh ends' 11:02:43 ---> tox-run.sh ends 11:02:43 + test 1 -eq 0 11:02:43 + exit 1 11:02:43 ++ '[' 1 = 1 ']' 11:02:43 ++ '[' -x /usr/bin/clear_console ']' 11:02:43 ++ /usr/bin/clear_console -q 11:02:43 Build step 'Execute shell' marked build as failure 11:02:43 $ ssh-agent -k 11:02:43 unset SSH_AUTH_SOCK; 11:02:43 unset SSH_AGENT_PID; 11:02:43 echo Agent pid 1560 killed; 11:02:43 [ssh-agent] Stopped. 11:02:43 [PostBuildScript] - [INFO] Executing post build scripts. 11:02:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins10424283437300948367.sh 11:02:43 ---> sysstat.sh 11:02:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins11205929291442086321.sh 11:02:43 ---> package-listing.sh 11:02:43 + '[' -f /etc/os-release ']' 11:02:43 + . /etc/os-release 11:02:43 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 11:02:43 ++ NAME=Ubuntu 11:02:43 ++ VERSION_ID=22.04 11:02:43 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 11:02:43 ++ VERSION_CODENAME=jammy 11:02:43 ++ ID=ubuntu 11:02:43 ++ ID_LIKE=debian 11:02:43 ++ HOME_URL=https://www.ubuntu.com/ 11:02:43 ++ SUPPORT_URL=https://help.ubuntu.com/ 11:02:43 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 11:02:43 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 11:02:43 ++ UBUNTU_CODENAME=jammy 11:02:43 + case " ${ID:-} ${ID_LIKE:-} " in 11:02:43 + OS_FAMILY=debian 11:02:43 + workspace=/w/workspace/transportpce-tox-verify-chromium 11:02:43 + START_PACKAGES=/tmp/packages_start.txt 11:02:43 + END_PACKAGES=/tmp/packages_end.txt 11:02:43 + DIFF_PACKAGES=/tmp/packages_diff.txt 11:02:43 + PACKAGES=/tmp/packages_start.txt 11:02:43 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 11:02:43 + PACKAGES=/tmp/packages_end.txt 11:02:43 + case "${OS_FAMILY}" in 11:02:43 + dpkg -l 11:02:43 + grep '^ii' 11:02:43 + '[' -f /tmp/packages_start.txt ']' 11:02:43 + '[' -f /tmp/packages_end.txt ']' 11:02:43 + diff /tmp/packages_start.txt /tmp/packages_end.txt 11:02:43 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 11:02:43 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/ 11:02:43 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-chromium/archives/ 11:02:43 + exit 0 11:02:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins7793605414747189018.sh 11:02:43 ---> capture-instance-metadata.sh 11:02:43 Setup pyenv: 11:02:43 system 11:02:43 3.8.20 11:02:43 3.9.20 11:02:43 3.10.15 11:02:43 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 11:02:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-RH2f from file:/tmp/.os_lf_venv 11:02:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:02:45 lf-activate-venv(): INFO: Installing additional packages: lftools 11:02:55 lf-activate-venv(): INFO: Adding /tmp/venv-RH2f/bin to PATH 11:02:55 INFO: Running in OpenStack, capturing instance metadata 11:02:56 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins2240448728692743318.sh 11:02:56 provisioning config files... 11:02:56 Could not find credentials [logs] for transportpce-tox-verify-chromium #14 11:02:56 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-chromium@tmp/config11586093439171930714tmp 11:02:56 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 11:02:56 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 11:02:56 provisioning config files... 11:02:57 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 11:02:57 [EnvInject] - Injecting environment variables from a build step. 11:02:57 [EnvInject] - Injecting as environment variables the properties content 11:02:57 SERVER_ID=logs 11:02:57 11:02:57 [EnvInject] - Variables injected successfully. 11:02:57 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins1477035995955320921.sh 11:02:57 ---> create-netrc.sh 11:02:57 WARN: Log server credential not found. 11:02:57 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins15306846513588839449.sh 11:02:57 ---> python-tools-install.sh 11:02:57 Setup pyenv: 11:02:57 system 11:02:57 3.8.20 11:02:57 3.9.20 11:02:57 3.10.15 11:02:57 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 11:02:57 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-RH2f from file:/tmp/.os_lf_venv 11:02:57 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:02:59 lf-activate-venv(): INFO: Installing additional packages: lftools 11:03:08 lf-activate-venv(): INFO: Adding /tmp/venv-RH2f/bin to PATH 11:03:08 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins8173848593154560614.sh 11:03:08 ---> uv-install.sh 11:03:08 uv 0.13.5 is already installed 11:03:08 uvx 0.13.5 (x86_64-unknown-linux-gnu) 11:03:08 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins644832315674361682.sh 11:03:08 ---> sudo-logs.sh 11:03:08 Archiving 'sudo' log.. 11:03:08 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins497825481649655500.sh 11:03:08 ---> job-cost.sh 11:03:08 INFO: Activating Python virtual environment... 11:03:08 Setup pyenv: 11:03:08 system 11:03:08 3.8.20 11:03:08 3.9.20 11:03:08 3.10.15 11:03:08 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 11:03:08 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-RH2f from file:/tmp/.os_lf_venv 11:03:08 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:03:10 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 11:03:17 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. 11:03:17 botocore 1.43.118 requires python-dateutil<3.0.0,>=2.1, but you have python-dateutil 3.0.0 which is incompatible. 11:03:18 lf-activate-venv(): INFO: Adding /tmp/venv-RH2f/bin to PATH 11:03:18 INFO: No stack-cost file found 11:03:18 INFO: Instance uptime: 727s 11:03:18 INFO: Fetching instance metadata (attempt 1 of 3)... 11:03:18 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 11:03:18 INFO: Successfully fetched instance metadata 11:03:18 INFO: Instance type: v3-standard-4 11:03:18 INFO: Retrieving pricing info for: v3-standard-4 11:03:18 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 11:03:18 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=727 11:03:18 INFO: Successfully fetched Vexxhost pricing API 11:03:18 INFO: Retrieved cost: 0.11 11:03:18 INFO: Retrieved resource: v3-standard-4 11:03:18 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-chromium/archives/cost 11:03:18 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-chromium/archives/cost.csv 11:03:18 INFO: Successfully archived job cost data 11:03:18 DEBUG: Cost data: transportpce-tox-verify-chromium,14,2026-10-23 11:03:18,v3-standard-4,727,0.11,0.00,FAILURE 11:03:18 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins11796008385144678211.sh 11:03:18 ---> logs-deploy.sh 11:03:18 Setup pyenv: 11:03:18 system 11:03:18 3.8.20 11:03:18 3.9.20 11:03:18 3.10.15 11:03:18 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 11:03:19 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-RH2f from file:/tmp/.os_lf_venv 11:03:19 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:03:20 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 11:03:29 lf-activate-venv(): INFO: Adding /tmp/venv-RH2f/bin to PATH 11:03:29 WARNING: Nexus logging server not set 11:03:29 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-chromium/14/ 11:03:29 INFO: archiving logs to S3 11:03:31 ---> uname -a: 11:03:31 Linux prd-ubuntu2204-docker-4c-16g-66435 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 11:03:31 11:03:31 11:03:31 ---> lscpu: 11:03:31 Architecture: x86_64 11:03:31 CPU op-mode(s): 32-bit, 64-bit 11:03:31 Address sizes: 40 bits physical, 48 bits virtual 11:03:31 Byte Order: Little Endian 11:03:31 CPU(s): 4 11:03:31 On-line CPU(s) list: 0-3 11:03:31 Vendor ID: AuthenticAMD 11:03:31 Model name: AMD EPYC-Rome Processor 11:03:31 CPU family: 23 11:03:31 Model: 49 11:03:31 Thread(s) per core: 1 11:03:31 Core(s) per socket: 1 11:03:31 Socket(s): 4 11:03:31 Stepping: 0 11:03:31 BogoMIPS: 5600.00 11:03:31 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 11:03:31 Virtualization: AMD-V 11:03:31 Hypervisor vendor: KVM 11:03:31 Virtualization type: full 11:03:31 L1d cache: 128 KiB (4 instances) 11:03:31 L1i cache: 128 KiB (4 instances) 11:03:31 L2 cache: 2 MiB (4 instances) 11:03:31 L3 cache: 64 MiB (4 instances) 11:03:31 NUMA node(s): 1 11:03:31 NUMA node0 CPU(s): 0-3 11:03:31 Vulnerability Gather data sampling: Not affected 11:03:31 Vulnerability Indirect target selection: Not affected 11:03:31 Vulnerability Itlb multihit: Not affected 11:03:31 Vulnerability L1tf: Not affected 11:03:31 Vulnerability Mds: Not affected 11:03:31 Vulnerability Meltdown: Not affected 11:03:31 Vulnerability Mmio stale data: Not affected 11:03:31 Vulnerability Reg file data sampling: Not affected 11:03:31 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 11:03:31 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 11:03:31 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 11:03:31 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 11:03:31 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 11:03:31 Vulnerability Srbds: Not affected 11:03:31 Vulnerability Tsa: Not affected 11:03:31 Vulnerability Tsx async abort: Not affected 11:03:31 Vulnerability Vmscape: Not affected 11:03:31 11:03:31 11:03:31 ---> nproc: 11:03:31 4 11:03:31 11:03:31 11:03:31 ---> df -h: 11:03:31 Filesystem Size Used Avail Use% Mounted on 11:03:31 tmpfs 1.6G 1.1M 1.6G 1% /run 11:03:31 /dev/vda1 78G 11G 67G 15% / 11:03:31 tmpfs 7.9G 0 7.9G 0% /dev/shm 11:03:31 tmpfs 5.0M 0 5.0M 0% /run/lock 11:03:31 /dev/vda15 105M 6.1M 99M 6% /boot/efi 11:03:31 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 11:03:31 11:03:31 11:03:31 ---> free -m: 11:03:31 total used free shared buff/cache available 11:03:31 Mem: 15989 719 9524 4 5746 14926 11:03:31 Swap: 1023 0 1023 11:03:31 11:03:31 11:03:31 ---> ip addr: 11:03:31 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 11:03:31 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 11:03:31 inet 127.0.0.1/8 scope host lo 11:03:31 valid_lft forever preferred_lft forever 11:03:31 inet6 ::1/128 scope host 11:03:31 valid_lft forever preferred_lft forever 11:03:31 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 11:03:31 link/ether fa:16:3e:28:bc:93 brd ff:ff:ff:ff:ff:ff 11:03:31 altname enp0s3 11:03:31 inet 10.30.171.79/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 11:03:31 valid_lft 85668sec preferred_lft 85668sec 11:03:31 inet6 fe80::f816:3eff:fe28:bc93/64 scope link 11:03:31 valid_lft forever preferred_lft forever 11:03:31 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 11:03:31 link/ether 5a:0c:c2:3f:c4:26 brd ff:ff:ff:ff:ff:ff 11:03:31 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 11:03:31 valid_lft forever preferred_lft forever 11:03:31 inet6 fe80::580c:c2ff:fe3f:c426/64 scope link 11:03:31 valid_lft forever preferred_lft forever 11:03:31 11:03:31 11:03:31 ---> sar -b -r -n DEV: 11:03:31 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-66435) 10/23/26 _x86_64_ (4 CPU) 11:03:31 11:03:31 10:51:21 LINUX RESTART (4 CPU) 11:03:31 11:03:31 11:03:31 ---> sar -P ALL: 11:03:31 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-66435) 10/23/26 _x86_64_ (4 CPU) 11:03:31 11:03:31 10:51:21 LINUX RESTART (4 CPU) 11:03:31 11:03:31 11:03:31