14:42:48 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125751 14:42:48 Running as SYSTEM 14:42:48 [EnvInject] - Loading node environment variables. 14:42:48 Building remotely on prd-ubuntu2204-docker-4c-16g-16 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-vanadium 14:42:48 [ssh-agent] Looking for ssh-agent implementation... 14:42:49 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:42:49 $ ssh-agent 14:42:49 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXBeMq63/agent.1547 14:42:49 SSH_AGENT_PID=1549 14:42:49 [ssh-agent] Started. 14:42:49 Running ssh-add (command line suppressed) 14:42:49 Identity added: /w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_5414439015283546225.key (/w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_5414439015283546225.key) 14:42:49 [ssh-agent] Using credentials jenkins (jenkins-ssh) 14:42:49 The recommended git tool is: NONE 14:42:51 using credential jenkins-ssh 14:42:52 Wiping out workspace first. 14:42:52 Cloning the remote Git repository 14:42:52 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 14:42:55 > git init /w/workspace/transportpce-tox-verify-vanadium # timeout=10 14:42:55 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:42:55 > git --version # timeout=10 14:42:55 > git --version # 'git version 2.34.1' 14:42:55 using GIT_SSH to set credentials jenkins-ssh 14:42:55 Verifying host key using known hosts file, will automatically accept unseen keys 14:42:55 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 14:42:59 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:42:59 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 14:43:00 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:43:00 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:43:00 using GIT_SSH to set credentials jenkins-ssh 14:43:00 Verifying host key using known hosts file, will automatically accept unseen keys 14:43:00 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/51/125751/1 # timeout=10 14:43:00 > git rev-parse 69f0c03c0d32658c94673e92f47da9b36173bf71^{commit} # timeout=10 14:43:00 Checking out Revision 69f0c03c0d32658c94673e92f47da9b36173bf71 (refs/changes/51/125751/1) 14:43:00 > git config core.sparsecheckout # timeout=10 14:43:00 > git checkout -f 69f0c03c0d32658c94673e92f47da9b36173bf71 # timeout=10 14:43:04 Commit message: "fix declaration/use distance violations" 14:43:04 > git rev-parse FETCH_HEAD^{commit} # timeout=10 14:43:04 > git rev-list --no-walk 72d43789d4e4383020529b0440487e7eb40bd7bd # timeout=10 14:43:04 > git remote # timeout=10 14:43:04 > git submodule init # timeout=10 14:43:04 > git submodule sync # timeout=10 14:43:04 > git config --get remote.origin.url # timeout=10 14:43:04 > git submodule init # timeout=10 14:43:04 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 14:43:04 ERROR: No submodules found. 14:43:04 provisioning config files... 14:43:04 copy managed file [npmrc] to file:/home/jenkins/.npmrc 14:43:04 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 14:43:04 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins15597511358946629364.sh 14:43:04 ---> python-tools-install.sh 14:43:04 Setup pyenv: 14:43:04 * system (set by /opt/pyenv/version) 14:43:04 * 3.8.20 (set by /opt/pyenv/version) 14:43:04 * 3.9.20 (set by /opt/pyenv/version) 14:43:04 3.10.15 14:43:04 3.11.10 14:43:09 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-3J4y 14:43:09 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 14:43:09 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:14 lf-activate-venv(): INFO: Installing additional packages: lftools 14:44:06 lf-activate-venv(): INFO: Adding /tmp/venv-3J4y/bin to PATH 14:44:06 Generating Requirements File 14:44:36 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. 14:44:36 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 14:44:36 Python 3.11.10 14:44:37 pip 26.2.1 from /tmp/venv-3J4y/lib/python3.11/site-packages/pip (python 3.11) 14:44:37 aiohappyeyeballs==2.7.1 14:44:37 aiohttp==3.14.3 14:44:37 aiosignal==1.4.0 14:44:37 appdirs==1.4.4 14:44:37 argcomplete==3.7.2 14:44:37 aspy.yaml==1.3.0 14:44:37 attrs==26.1.0 14:44:37 autopage==0.6.0 14:44:37 beautifulsoup4==4.15.0 14:44:37 boto3==1.43.88 14:44:37 botocore==1.43.88 14:44:37 bs4==0.0.2 14:44:37 certifi==2026.7.22 14:44:37 cffi==2.1.1 14:44:37 cfgv==3.5.0 14:44:37 chardet==7.6.0 14:44:37 charset-normalizer==3.5.1 14:44:37 click==8.5.0 14:44:37 cliff==4.16.0 14:44:37 cmd2==4.2.3 14:44:37 cryptography==3.3.2 14:44:37 debtcollector==3.1.0 14:44:37 decorator==5.3.1 14:44:37 defusedxml==0.7.1 14:44:37 Deprecated==1.3.1 14:44:37 distlib==0.4.3 14:44:37 dnspython==2.8.0 14:44:37 docker==7.2.0 14:44:37 dogpile.cache==1.5.0 14:44:37 durationpy==0.11 14:44:37 email-validator==2.3.0 14:44:37 filelock==3.32.5 14:44:37 frozenlist==1.8.0 14:44:37 future==1.0.0 14:44:37 gitdb==4.0.12 14:44:37 GitPython==3.1.61 14:44:37 httplib2==0.30.2 14:44:37 identify==2.6.19 14:44:37 idna==3.19 14:44:37 importlib-resources==1.5.0 14:44:37 iso8601==2.1.0 14:44:37 Jinja2==3.1.6 14:44:37 jmespath==1.1.0 14:44:37 jsonpatch==1.33 14:44:37 jsonpointer==3.1.1 14:44:37 jsonschema==4.26.0 14:44:37 jsonschema-specifications==2025.9.1 14:44:37 keystoneauth1==5.17.0 14:44:37 kubernetes==36.0.3 14:44:37 lftools==0.37.23 14:44:37 lxml==6.1.3 14:44:37 markdown-it-py==4.2.0 14:44:37 MarkupSafe==3.0.3 14:44:37 mdurl==0.1.2 14:44:37 msgpack==1.2.2 14:44:37 multi_key_dict==2.0.3 14:44:37 multidict==6.7.1 14:44:37 munch==4.0.0 14:44:37 netaddr==1.3.0 14:44:37 niet==1.4.2 14:44:37 nodeenv==1.10.0 14:44:37 oauth2client==4.1.3 14:44:37 oauthlib==3.3.1 14:44:37 openstacksdk==4.20.0 14:44:37 os-service-types==1.9.0 14:44:37 osc-lib==4.7.0 14:44:37 oslo.config==10.7.0 14:44:37 oslo.context==6.5.0 14:44:37 oslo.i18n==6.9.0 14:44:37 oslo.log==8.3.1 14:44:37 oslo.serialization==5.11.0 14:44:37 oslo.utils==10.2.0 14:44:37 packaging==26.3 14:44:37 pbr==7.0.3 14:44:37 platformdirs==4.11.7 14:44:37 prettytable==3.18.0 14:44:37 prompt_toolkit==3.0.53 14:44:37 propcache==0.5.2 14:44:37 psutil==7.2.2 14:44:37 pyasn1==0.6.4 14:44:37 pyasn1_modules==0.4.2 14:44:37 pycparser==3.0 14:44:37 pygerrit2==2.0.15 14:44:37 PyGithub==2.10.0 14:44:37 Pygments==2.21.0 14:44:37 PyJWT==2.13.0 14:44:37 PyNaCl==1.6.2 14:44:37 pyparsing==2.4.7 14:44:37 pyperclip==1.11.0 14:44:37 pyrsistent==0.20.0 14:44:37 python-dateutil==2.9.0.post0 14:44:37 python-discovery==1.6.0 14:44:37 python-heatclient==5.3.0 14:44:37 python-jenkins==1.8.3 14:44:37 python-keystoneclient==6.0.0 14:44:37 python-magnumclient==5.0.0 14:44:37 python-manilaclient==6.3.0 14:44:37 python-openstackclient==10.3.0 14:44:37 python-swiftclient==4.11.0 14:44:37 PyYAML==6.0.3 14:44:37 referencing==0.37.0 14:44:37 requests==2.34.2 14:44:37 requests-oauthlib==2.0.0 14:44:37 rfc3986==2.0.0 14:44:37 rich==15.0.0 14:44:37 rich-argparse==1.8.0 14:44:37 rpds-py==2026.6.3 14:44:37 rsa==4.9.1 14:44:37 ruamel.yaml==0.19.1 14:44:37 ruamel.yaml.clib==0.2.15 14:44:37 s3transfer==0.19.2 14:44:37 simplejson==4.1.2 14:44:37 six==1.17.0 14:44:37 smmap==5.0.3 14:44:37 soupsieve==2.9.2 14:44:37 stevedore==5.9.1 14:44:37 tabulate==0.10.0 14:44:37 toml==0.10.2 14:44:37 tomlkit==0.15.1 14:44:37 tqdm==4.70.0 14:44:37 typing_extensions==4.16.0 14:44:37 urllib3==1.26.20 14:44:37 virtualenv==21.7.8 14:44:37 wcwidth==0.8.3 14:44:37 websocket-client==1.9.2 14:44:37 wrapt==2.4.0 14:44:37 xdg==6.0.0 14:44:37 xmltodict==1.0.4 14:44:37 yarl==1.24.5 14:44:37 yq==4.1.2 14:44:37 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins16961713812342755796.sh 14:44:37 ---> uv-install.sh 14:44:37 Installing uv/uvx (latest) using shell installer 14:44:37 2026-09-04 14:44:37 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-6eGfDX.sh" [1] 14:44:37 downloading uv 0.12.9 x86_64-unknown-linux-gnu 14:44:38 installing to /home/jenkins/.local/bin 14:44:38 uv 14:44:38 uvx 14:44:38 everything's installed! 14:44:38 14:44:38 To add $HOME/.local/bin to your PATH, either restart your shell or run: 14:44:38 14:44:38 source $HOME/.local/bin/env (sh, bash, zsh) 14:44:38 source $HOME/.local/bin/env.fish (fish) 14:44:38 Adding install location to PATH 14:44:38 ---> Validating uv/uvx install 14:44:38 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:44:38 [EnvInject] - Injecting environment variables from a build step. 14:44:38 [EnvInject] - Injecting as environment variables the properties content 14:44:38 PYTHON=python3 14:44:38 14:44:38 [EnvInject] - Variables injected successfully. 14:44:39 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins937157176457206388.sh 14:44:39 ---> tox-install.sh 14:44:39 + source /home/jenkins/lf-env.sh 14:44:39 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:39 ++ mktemp -d /tmp/venv-XXXX 14:44:39 + lf_venv=/tmp/venv-SMe6 14:44:39 + local venv_file=/tmp/.os_lf_venv 14:44:39 + local python=python3 14:44:39 + local options 14:44:39 + local set_path=true 14:44:39 + local install_args= 14:44:39 ++ 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 14:44:39 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:39 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:39 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:44:39 + true 14:44:39 + case $1 in 14:44:39 + venv_file=/tmp/.toxenv 14:44:39 + shift 2 14:44:39 + true 14:44:39 + case $1 in 14:44:39 + shift 14:44:39 + break 14:44:39 + case $python in 14:44:39 + local pkg_list= 14:44:39 + [[ -d /opt/pyenv ]] 14:44:39 + echo 'Setup pyenv:' 14:44:39 Setup pyenv: 14:44:39 + export PYENV_ROOT=/opt/pyenv 14:44:39 + PYENV_ROOT=/opt/pyenv 14:44:39 + 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 14:44:39 + 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 14:44:39 + pyenv versions 14:44:39 system 14:44:39 3.8.20 14:44:39 3.9.20 14:44:39 3.10.15 14:44:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:44:39 + command -v pyenv 14:44:39 ++ pyenv init - --no-rehash 14:44:39 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:44:39 for i in ${!paths[@]}; do 14:44:39 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:44:39 fi; done; 14:44:39 echo "${paths[*]}"'\'')" 14:44:39 export PATH="/opt/pyenv/shims:${PATH}" 14:44:39 export PYENV_SHELL=bash 14:44:39 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:44:39 pyenv() { 14:44:39 local command 14:44:39 command="${1:-}" 14:44:39 if [ "$#" -gt 0 ]; then 14:44:39 shift 14:44:39 fi 14:44:39 14:44:39 case "$command" in 14:44:39 rehash|shell) 14:44:39 eval "$(pyenv "sh-$command" "$@")" 14:44:39 ;; 14:44:39 *) 14:44:39 command pyenv "$command" "$@" 14:44:39 ;; 14:44:39 esac 14:44:39 }' 14:44:39 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:44:39 for i in ${!paths[@]}; do 14:44:39 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:44:39 fi; done; 14:44:39 echo "${paths[*]}"' 14:44:39 ++ 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 14:44:39 ++ 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 14:44:39 ++ 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 14:44:39 ++ export PYENV_SHELL=bash 14:44:39 ++ PYENV_SHELL=bash 14:44:39 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:44:39 +++ complete -F _pyenv pyenv 14:44:39 ++ lf-pyver python3 14:44:39 ++ local py_version_xy=python3 14:44:39 ++ local py_version_xyz= 14:44:39 ++ pyenv versions 14:44:39 ++ sed 's/^[ *]* //' 14:44:39 ++ local command 14:44:39 ++ command=versions 14:44:39 ++ '[' 1 -gt 0 ']' 14:44:39 ++ shift 14:44:39 ++ case "$command" in 14:44:39 ++ command pyenv versions 14:44:39 ++ grep -E '^[0-9.]*[0-9]$' 14:44:39 ++ awk '{ print $1 }' 14:44:39 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:44:39 +++ grep '^3' /tmp/.pyenv_versions 14:44:39 +++ tail -n 1 14:44:39 +++ sort -V 14:44:39 ++ py_version_xyz=3.11.10 14:44:39 ++ [[ -z 3.11.10 ]] 14:44:39 ++ echo 3.11.10 14:44:39 ++ return 0 14:44:39 + pyenv local 3.11.10 14:44:39 + local command 14:44:39 + command=local 14:44:39 + '[' 2 -gt 0 ']' 14:44:39 + shift 14:44:39 + case "$command" in 14:44:39 + command pyenv local 3.11.10 14:44:39 + for arg in "$@" 14:44:39 + case $arg in 14:44:39 + pkg_list+='tox ' 14:44:39 + for arg in "$@" 14:44:39 + case $arg in 14:44:39 + pkg_list+='virtualenv ' 14:44:39 + for arg in "$@" 14:44:39 + case $arg in 14:44:39 + pkg_list+='urllib3~=1.26.15 ' 14:44:39 + [[ -f /tmp/.toxenv ]] 14:44:39 + [[ ! -f /tmp/.toxenv ]] 14:44:39 + [[ -n '' ]] 14:44:39 + python3 -m venv /tmp/venv-SMe6 14:44:43 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-SMe6' 14:44:43 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-SMe6 14:44:43 + echo /tmp/venv-SMe6 14:44:43 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 14:44:43 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 14:44:43 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:44:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:44:43 + local 'pip_opts=--upgrade --quiet' 14:44:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:44:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:44:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:44:43 + [[ -n '' ]] 14:44:43 + [[ -n '' ]] 14:44:43 + lf-venv-pip-install /tmp/venv-SMe6/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:44:43 + local venv_python=/tmp/venv-SMe6/bin/python3 14:44:43 + shift 14:44:43 + local upstream=https://pypi.org/simple 14:44:43 + /tmp/venv-SMe6/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 14:44:47 + return 0 14:44:47 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:44:47 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:44:47 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:44:47 + lf-venv-pip-install /tmp/venv-SMe6/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 14:44:47 + local venv_python=/tmp/venv-SMe6/bin/python3 14:44:47 + shift 14:44:47 + local upstream=https://pypi.org/simple 14:44:47 + /tmp/venv-SMe6/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 14:44:50 + return 0 14:44:50 + type python3 14:44:50 + true 14:44:50 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-SMe6/bin to PATH' 14:44:50 lf-activate-venv(): INFO: Adding /tmp/venv-SMe6/bin to PATH 14:44:50 + PATH=/tmp/venv-SMe6/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 14:44:50 + return 0 14:44:50 + python3 --version 14:44:50 Python 3.11.10 14:44:50 + python3 -m pip --version 14:44:50 pip 26.2.1 from /tmp/venv-SMe6/lib/python3.11/site-packages/pip (python 3.11) 14:44:50 + python3 -m pip freeze 14:44:50 cachetools==7.1.8 14:44:50 colorama==0.4.6 14:44:50 distlib==0.4.3 14:44:50 filelock==3.32.5 14:44:50 packaging==26.3 14:44:50 platformdirs==4.11.7 14:44:50 pluggy==1.6.0 14:44:50 pyproject-api==1.11.0 14:44:50 python-discovery==1.6.0 14:44:50 tomli_w==1.2.0 14:44:50 tox==4.61.2 14:44:50 typing_extensions==4.16.0 14:44:50 urllib3==1.26.20 14:44:50 virtualenv==21.7.8 14:44:50 [transportpce-tox-verify-vanadium] $ /bin/sh -xe /tmp/jenkins17945192465317679489.sh 14:44:50 [EnvInject] - Injecting environment variables from a build step. 14:44:50 [EnvInject] - Injecting as environment variables the properties content 14:44:50 PARALLEL=True 14:44:50 14:44:50 [EnvInject] - Variables injected successfully. 14:44:50 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins7465209447510406504.sh 14:44:50 ---> tox-run.sh 14:44:50 + 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 14:44:50 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:44:50 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:44:50 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:44:50 + cd /w/workspace/transportpce-tox-verify-vanadium/. 14:44:50 + source /home/jenkins/lf-env.sh 14:44:50 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:50 ++ mktemp -d /tmp/venv-XXXX 14:44:50 + lf_venv=/tmp/venv-NIyQ 14:44:50 + local venv_file=/tmp/.os_lf_venv 14:44:50 + local python=python3 14:44:50 + local options 14:44:50 + local set_path=true 14:44:50 + local install_args= 14:44:50 ++ 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 14:44:50 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:50 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:50 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:44:50 + true 14:44:50 + case $1 in 14:44:50 + venv_file=/tmp/.toxenv 14:44:50 + shift 2 14:44:50 + true 14:44:50 + case $1 in 14:44:50 + shift 14:44:50 + break 14:44:50 + case $python in 14:44:50 + local pkg_list= 14:44:50 + [[ -d /opt/pyenv ]] 14:44:50 + echo 'Setup pyenv:' 14:44:50 Setup pyenv: 14:44:50 + export PYENV_ROOT=/opt/pyenv 14:44:50 + PYENV_ROOT=/opt/pyenv 14:44:50 + 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 14:44:50 + 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 14:44:50 + pyenv versions 14:44:50 system 14:44:50 3.8.20 14:44:50 3.9.20 14:44:50 3.10.15 14:44:51 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:44:51 + command -v pyenv 14:44:51 ++ pyenv init - --no-rehash 14:44:51 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:44:51 for i in ${!paths[@]}; do 14:44:51 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:44:51 fi; done; 14:44:51 echo "${paths[*]}"'\'')" 14:44:51 export PATH="/opt/pyenv/shims:${PATH}" 14:44:51 export PYENV_SHELL=bash 14:44:51 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:44:51 pyenv() { 14:44:51 local command 14:44:51 command="${1:-}" 14:44:51 if [ "$#" -gt 0 ]; then 14:44:51 shift 14:44:51 fi 14:44:51 14:44:51 case "$command" in 14:44:51 rehash|shell) 14:44:51 eval "$(pyenv "sh-$command" "$@")" 14:44:51 ;; 14:44:51 *) 14:44:51 command pyenv "$command" "$@" 14:44:51 ;; 14:44:51 esac 14:44:51 }' 14:44:51 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:44:51 for i in ${!paths[@]}; do 14:44:51 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:44:51 fi; done; 14:44:51 echo "${paths[*]}"' 14:44:51 ++ 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 14:44:51 ++ 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 14:44:51 ++ 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 14:44:51 ++ export PYENV_SHELL=bash 14:44:51 ++ PYENV_SHELL=bash 14:44:51 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:44:51 +++ complete -F _pyenv pyenv 14:44:51 ++ lf-pyver python3 14:44:51 ++ local py_version_xy=python3 14:44:51 ++ local py_version_xyz= 14:44:51 ++ pyenv versions 14:44:51 ++ local command 14:44:51 ++ command=versions 14:44:51 ++ '[' 1 -gt 0 ']' 14:44:51 ++ shift 14:44:51 ++ case "$command" in 14:44:51 ++ command pyenv versions 14:44:51 ++ sed 's/^[ *]* //' 14:44:51 ++ awk '{ print $1 }' 14:44:51 ++ grep -E '^[0-9.]*[0-9]$' 14:44:51 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:44:51 +++ grep '^3' /tmp/.pyenv_versions 14:44:51 +++ sort -V 14:44:51 +++ tail -n 1 14:44:51 ++ py_version_xyz=3.11.10 14:44:51 ++ [[ -z 3.11.10 ]] 14:44:51 ++ echo 3.11.10 14:44:51 ++ return 0 14:44:51 + pyenv local 3.11.10 14:44:51 + local command 14:44:51 + command=local 14:44:51 + '[' 2 -gt 0 ']' 14:44:51 + shift 14:44:51 + case "$command" in 14:44:51 + command pyenv local 3.11.10 14:44:51 + for arg in "$@" 14:44:51 + case $arg in 14:44:51 + pkg_list+='tox ' 14:44:51 + for arg in "$@" 14:44:51 + case $arg in 14:44:51 + pkg_list+='virtualenv ' 14:44:51 + for arg in "$@" 14:44:51 + case $arg in 14:44:51 + pkg_list+='urllib3~=1.26.15 ' 14:44:51 + [[ -f /tmp/.toxenv ]] 14:44:51 ++ cat /tmp/.toxenv 14:44:51 + lf_venv=/tmp/venv-SMe6 14:44:51 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-SMe6 from' file:/tmp/.toxenv 14:44:51 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-SMe6 from file:/tmp/.toxenv 14:44:51 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:44:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:44:51 + local 'pip_opts=--upgrade --quiet' 14:44:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:44:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:44:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:44:51 + [[ -n '' ]] 14:44:51 + [[ -n '' ]] 14:44:51 + lf-venv-pip-install /tmp/venv-SMe6/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:44:51 + local venv_python=/tmp/venv-SMe6/bin/python3 14:44:51 + shift 14:44:51 + local upstream=https://pypi.org/simple 14:44:51 + /tmp/venv-SMe6/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 14:44:52 + return 0 14:44:52 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:44:52 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:44:52 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:44:52 + lf-venv-pip-install /tmp/venv-SMe6/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 14:44:52 + local venv_python=/tmp/venv-SMe6/bin/python3 14:44:52 + shift 14:44:52 + local upstream=https://pypi.org/simple 14:44:52 + /tmp/venv-SMe6/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 14:44:53 + return 0 14:44:53 + type python3 14:44:53 + true 14:44:53 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-SMe6/bin to PATH' 14:44:53 lf-activate-venv(): INFO: Adding /tmp/venv-SMe6/bin to PATH 14:44:53 + PATH=/tmp/venv-SMe6/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 14:44:53 + return 0 14:44:53 + [[ -d /opt/pyenv ]] 14:44:53 + echo '---> Setting up pyenv' 14:44:53 ---> Setting up pyenv 14:44:53 + export PYENV_ROOT=/opt/pyenv 14:44:53 + PYENV_ROOT=/opt/pyenv 14:44:53 + export PATH=/opt/pyenv/bin:/tmp/venv-SMe6/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 14:44:53 + PATH=/opt/pyenv/bin:/tmp/venv-SMe6/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 14:44:53 ++ pwd 14:44:53 + PYTHONPATH=/w/workspace/transportpce-tox-verify-vanadium 14:44:53 + export PYTHONPATH 14:44:53 + export TOX_TESTENV_PASSENV=PYTHONPATH 14:44:53 + TOX_TESTENV_PASSENV=PYTHONPATH 14:44:53 + tox --version 14:44:53 4.61.2 from /tmp/venv-SMe6/lib/python3.11/site-packages/tox/__init__.py 14:44:53 + PARALLEL=True 14:44:53 + TOX_OPTIONS_LIST= 14:44:53 + [[ -n '' ]] 14:44:53 + case ${PARALLEL,,} in 14:44:53 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 14:44:53 + tox --parallel auto --parallel-live 14:44:53 + tee -a /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tox.log 14:44:55 checkbashisms: freeze> python -m pip freeze --all 14:44:55 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:44:55 docs: install_deps> python -I -m pip install -r docs/requirements.txt 14:44:55 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 14:44:55 checkbashisms: pip==26.2.1,setuptools==84.0.0 14:44:55 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:44:55 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-vanadium/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)' 14:44:55 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 14:44:57 checkbashisms: OK ✔ in 3.11 seconds 14:44:57 pre-commit: install_deps> python -I -m pip install pre-commit 14:44:59 pre-commit: freeze> python -m pip freeze --all 14:45:00 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.5,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.7,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.8 14:45:00 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:45:00 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-vanadium/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)' 14:45:00 /usr/bin/cpan 14:45:00 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run --all-files --show-diff-on-failure 14:45:00 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:00 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:00 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 14:45:00 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 14:45:00 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 14:45:01 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 14:45:01 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:45:02 buildcontroller: freeze> python -m pip freeze --all 14:45:03 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:03 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh 14:45:03 + update-java-alternatives -l 14:45:03 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 14:45:03 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 14:45:03 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 14:45:03 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 14:45:08 update-alternatives: error: no alternatives for jaotc 14:45:08 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 14:45:08 update-alternatives: error: no alternatives for rmic 14:45:08 + java -version 14:45:08 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 14:45:08 + JAVA_VER=21 14:45:08 + echo 21 14:45:08 21 14:45:08 + javac -version 14:45:08 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 14:45:08 + JAVAC_VER=21 14:45:08 + echo 21 14:45:08 + [ 21 -ge 21 ] 14:45:08 21 14:45:08 ok, java is 21 or newer 14:45:08 + [ 21 -ge 21 ] 14:45:08 + echo ok, java is 21 or newer 14:45:08 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz -P /tmp 14:45:08 https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz: 14:45:08 2026-09-04 14:45:08 ERROR 404: Not Found. 14:45:08 + sudo mkdir -p /opt 14:45:08 + sudo tar xf /tmp/apache-maven-3.9.14-bin.tar.gz -C /opt 14:45:08 tar: /tmp/apache-maven-3.9.14-bin.tar.gz: Cannot open: No such file or directory 14:45:08 tar: Error is not recoverable: exiting now 14:45:08 + sudo ln -s /opt/apache-maven-3.9.14 /opt/maven 14:45:08 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 14:45:08 + mvn --version 14:45:08 ./installMavenUbuntu.sh: 28: mvn: not found 14:45:08 buildcontroller: exit 127 (5.67 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh pid=2724 14:45:09 buildcontroller: FAIL ✖ in 15.02 seconds 14:45:09 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 14:45:09 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 14:45:11 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 14:45:11 [INFO] Once installed this environment will be reused. 14:45:11 [INFO] This may take a few minutes... 14:45:13 pylint: freeze> python -m pip freeze --all 14:45:13 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.7,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 14:45:13 pylint: commands[0] /w/workspace/transportpce-tox-verify-vanadium/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}$' '{}' + 14:45:15 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:45:15 [INFO] Once installed this environment will be reused. 14:45:15 [INFO] This may take a few minutes... 14:45:17 docs: freeze> python -m pip freeze --all 14:45:18 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 14:45:18 docs: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-vanadium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-vanadium/docs/_build/html 14:45:19 docs-linkcheck: freeze> python -m pip freeze --all 14:45:19 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 14:45:19 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-vanadium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-vanadium/docs/_build/linkcheck 14:45:20 docs: OK ✔ in 26.46 seconds 14:45:20 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:23 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 14:45:23 [INFO] Once installed this environment will be reused. 14:45:23 [INFO] This may take a few minutes... 14:45:26 docs-linkcheck: OK ✔ in 32.79 seconds 14:45:26 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:27 [INFO] Installing environment for https://github.com/perltidy/perltidy. 14:45:27 [INFO] Once installed this environment will be reused. 14:45:27 [INFO] This may take a few minutes... 14:45:28 build_karaf_tests121: freeze> python -m pip freeze --all 14:45:28 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:28 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:28 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 14:45:28 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:28 build karaf in karaf121 with ./karaf121.env 14:45:28 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:28 build_karaf_tests121: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3170 14:45:28 build_karaf_tests121: FAIL ✖ in 8.32 seconds 14:45:28 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:32 14:45:32 ------------------------------------ 14:45:32 Your code has been rated at 10.00/10 14:45:32 14:45:32 build_karaf_tests221: freeze> python -m pip freeze --all 14:45:33 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:33 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:33 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 14:45:33 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:33 build karaf in karaf221 with ./karaf221.env 14:45:33 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:33 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3196 14:45:33 build_karaf_tests221: FAIL ✖ in 6.43 seconds 14:45:33 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:33 pylint: OK ✔ in 24.9 seconds 14:45:33 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:35 build_karaf_tests71: freeze> python -m pip freeze --all 14:45:35 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:35 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:35 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 14:45:35 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:35 build karaf in karaf71 with ./karaf71.env 14:45:35 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:35 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3323 14:45:35 build_karaf_tests71: FAIL ✖ in 6.65 seconds 14:45:35 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:35 trim trailing whitespace.................................................Passed 14:45:35 Tabs remover.............................................................Passed 14:45:35 autopep8.................................................................Passed 14:45:39 perltidy.................................................................Passed 14:45:40 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run gitlint-ci --hook-stage manual 14:45:40 build_karaf_tests190: freeze> python -m pip freeze --all 14:45:40 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:40 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:40 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 14:45:40 [INFO] Once installed this environment will be reused. 14:45:40 [INFO] This may take a few minutes... 14:45:40 build_karaf_tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:40 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:40 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc 14:45:40 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:40 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:40 build karaf in karafoc with ./karafoc.env 14:45:40 build_karaf_tests190: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3400 14:45:40 build_karaf_tests190: FAIL ✖ in 7.63 seconds 14:45:40 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:40 buildlighty: freeze> python -m pip freeze --all 14:45:41 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:41 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh 14:45:41 ./build.sh: 7: mvn: not found 14:45:41 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 14:45:41 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh pid=3425 14:45:42 buildlighty: FAIL ✖ in 7.4 seconds 14:45:42 sims: freeze> python -m pip freeze --all 14:45:42 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:45:42 sims: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./install_lightynode.sh 14:45:42 Using lighynode version 20.1.0.5 14:45:42 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 14:45:46 gitlint..................................................................Passed 14:46:28 pre-commit: OK ✔ in 49.76 seconds 14:46:28 sims: OK ✔ in 11.98 seconds 14:46:28 testsPCE: freeze> python -m pip freeze --all 14:46:28 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.64.0,gnpy4tpce==2.4.7,idna==3.19,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.3,matplotlib==3.11.1,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 14:46:28 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce 14:46:28 pytest -q transportpce_tests/pce/test01_pce.py 14:48:29 EEEEEEEEEEEEEEEEEEEE [100%] 14:48:32 ==================================== ERRORS ==================================== 14:48:32 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 14:48:32 14:48:32 cls = 14:48:32 14:48:32 @classmethod 14:48:32 def setUpClass(cls): 14:48:32 # pylint: disable=bare-except 14:48:32 sample_files_parsed = False 14:48:32 time.sleep(20) 14:48:32 try: 14:48:32 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:32 "..", "..", "sample_configs", "honeynode-topo.json") 14:48:32 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 14:48:32 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 14:48:32 14:48:32 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:32 "..", "..", "sample_configs", "NW-simple-topology.json") 14:48:32 14:48:32 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 14:48:32 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 14:48:32 14:48:32 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:32 "..", "..", "sample_configs", "NW-for-test-5-4.json") 14:48:32 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 14:48:32 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 14:48:32 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:32 "..", "..", "sample_configs", "pce_portmapping_121.json") 14:48:32 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 14:48:32 cls.port_mapping_data = port_mapping.read() 14:48:32 sample_files_parsed = True 14:48:32 except PermissionError as err: 14:48:32 print("Permission Error when trying to read sample files\n", err) 14:48:32 sys.exit(2) 14:48:32 except FileNotFoundError as err: 14:48:32 print("File Not found Error when trying to read sample files\n", err) 14:48:32 sys.exit(2) 14:48:32 except: 14:48:32 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 14:48:32 sys.exit(2) 14:48:32 finally: 14:48:32 if sample_files_parsed: 14:48:32 print("sample files content loaded") 14:48:32 14:48:32 > cls.processes = test_utils.start_tpce() 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 14:48:32 transportpce_tests/pce/test01_pce.py:93: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 def start_tpce(): 14:48:32 if 'NO_ODL_STARTUP' in os.environ: 14:48:32 print('No OpenDaylight instance to start!') 14:48:32 return [] 14:48:32 print('starting OpenDaylight...') 14:48:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:48:32 process = start_lighty() 14:48:32 else: 14:48:32 process = start_karaf() 14:48:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:48:32 print('OpenDaylight started !') 14:48:32 else: 14:48:32 print('OpenDaylight failed to start !') 14:48:32 shutdown_process(process) 14:48:32 for pid in process_list: 14:48:32 shutdown_process(pid) 14:48:32 > sys.exit(1) 14:48:32 E SystemExit: 1 14:48:32 14:48:32 transportpce_tests/common/test_utils.py:232: SystemExit 14:48:32 ---------------------------- Captured stdout setup ----------------------------- 14:48:32 sample files content loaded 14:48:32 starting OpenDaylight... 14:48:32 starting KARAF (karaf) TransportPCE build... 14:48:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:48:32 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfbb2e0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcb4c0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddf8bf60> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfbb2e0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5e04cd120> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfbb2e0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfc9d00> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcba60> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddf8bf60> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcbb00> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcb380> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddf8bf60> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcafc0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfc9da0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcbd80> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcbb00> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddf8be20> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddf8bce0> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 14:48:32 14:48:32 cls = 14:48:32 func = . at 0x7ff5ddfcbc40> 14:48:32 when = 'setup' 14:48:32 reraise = (, ) 14:48:32 14:48:32 @classmethod 14:48:32 def from_call( 14:48:32 cls, 14:48:32 func: Callable[[], TResult], 14:48:32 when: Literal["collect", "setup", "call", "teardown"], 14:48:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:32 ) -> CallInfo[TResult]: 14:48:32 """Call func, wrapping the result in a CallInfo. 14:48:32 14:48:32 :param func: 14:48:32 The function to call. Called without arguments. 14:48:32 :type func: Callable[[], _pytest.runner.TResult] 14:48:32 :param when: 14:48:32 The phase in which the function is called. 14:48:32 :param reraise: 14:48:32 Exception or exceptions that shall propagate if raised by the 14:48:32 function, instead of being wrapped in the CallInfo. 14:48:32 """ 14:48:32 excinfo = None 14:48:32 instant = timing.Instant() 14:48:32 try: 14:48:32 > result: TResult | None = func() 14:48:32 ^^^^^^ 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:32 lambda: runtest_hook(item=item, **kwds), 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:32 yield 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:32 return (yield) 14:48:32 ^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:32 item.session._setupstate.setup(item) 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:32 col.setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:32 super().setup() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:32 self._request._fillfixtures() 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:32 fixturedef = self._get_active_fixturedef(argname) 14:48:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:32 fixturedef.execute(request=subrequest) 14:48:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:32 14:48:32 self = 14:48:32 request = > 14:48:32 14:48:32 def execute(self, request: SubRequest) -> FixtureValue: 14:48:32 """Return the value of this fixture, executing it if not cached.""" 14:48:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:32 # This needs to be done before checking if we have a cached value, since 14:48:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:32 # parametrization, they finalize themselves and fixtures depending on it 14:48:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:32 # See #4871 14:48:32 requested_fixtures_that_should_finalize_us = [] 14:48:32 for argname in self.argnames: 14:48:32 fixturedef = request._get_active_fixturedef(argname) 14:48:32 # Saves requested fixtures in a list so we later can add our finalizer 14:48:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:32 # down first. This is generally handled by SetupState, but still currently 14:48:32 # needed when this fixture is not parametrized but depends on a parametrized 14:48:32 # fixture. 14:48:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:32 14:48:32 # Check for (and return) cached value/exception. 14:48:32 if self.cached_result is not None: 14:48:32 request_cache_key = self.cache_key(request) 14:48:32 cache_key = self.cached_result[1] 14:48:32 try: 14:48:32 # Attempt to make a normal == check: this might fail for objects 14:48:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:32 cache_hit = bool(request_cache_key == cache_key) 14:48:32 except (ValueError, RuntimeError): 14:48:32 # If the comparison raises, use 'is' as fallback. 14:48:32 cache_hit = request_cache_key is cache_key 14:48:32 14:48:32 if cache_hit: 14:48:32 if self.cached_result[2] is not None: 14:48:32 exc, exc_tb = self.cached_result[2] 14:48:32 raise exc.with_traceback(exc_tb) 14:48:32 else: 14:48:32 return self.cached_result[0] 14:48:32 # We have a previous but differently parametrized fixture instance 14:48:32 # so we need to tear it down before creating a new one. 14:48:32 self.finish(request) 14:48:32 assert self.cached_result is None 14:48:32 14:48:32 # Add finalizer to requested fixtures we saved previously. 14:48:32 # We make sure to do this after checking for cached value to avoid 14:48:32 # adding our finalizer multiple times. (#12135) 14:48:32 finalizer = functools.partial(self.finish, request=request) 14:48:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:32 parent_fixture.addfinalizer(finalizer) 14:48:32 14:48:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:32 # which is executed last. 14:48:32 > assert not self._finalizers 14:48:32 ^^^^^^^^^^^^^^^^^^^^ 14:48:32 E AssertionError 14:48:32 14:48:32 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:32 =========================== short test summary info ============================ 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 14:48:32 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 14:48:32 20 errors in 123.80s (0:02:03) 14:48:32 testsPCE: exit 1 (124.10 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce pid=3515 14:48:33 testsPCE: FAIL ✖ in 2 minutes 52.22 seconds 14:48:33 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:48:33 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:48:33 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:48:39 tests190: freeze> python -m pip freeze --all 14:48:39 tests121: freeze> python -m pip freeze --all 14:48:39 tests_tapi: freeze> python -m pip freeze --all 14:48:39 tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:48:39 tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc 14:48:39 using environment variables from ./karafoc.env 14:48:39 pytest -q transportpce_tests/oc/test01_portmapping.py 14:48:39 tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:48:39 tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 14:48:39 using environment variables from ./karaf121.env 14:48:39 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 14:48:39 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:48:39 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi 14:48:39 using environment variables from ./karaf221.env 14:48:40 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 14:50:20 EEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:50:21 ==================================== ERRORS ==================================== 14:50:21 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 14:50:21 14:50:21 cls = 14:50:21 14:50:21 @classmethod 14:50:21 def setUpClass(cls): 14:50:21 > cls.processes = test_utils.start_tpce() 14:50:21 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:21 14:50:21 transportpce_tests/oc/test01_portmapping.py:29: 14:50:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:21 14:50:21 def start_tpce(): 14:50:21 if 'NO_ODL_STARTUP' in os.environ: 14:50:21 print('No OpenDaylight instance to start!') 14:50:21 return [] 14:50:21 print('starting OpenDaylight...') 14:50:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:21 process = start_lighty() 14:50:21 else: 14:50:21 process = start_karaf() 14:50:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:21 print('OpenDaylight started !') 14:50:21 else: 14:50:21 print('OpenDaylight failed to start !') 14:50:21 shutdown_process(process) 14:50:21 for pid in process_list: 14:50:21 shutdown_process(pid) 14:50:21 > sys.exit(1) 14:50:21 E SystemExit: 1 14:50:21 14:50:21 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:21 ---------------------------- Captured stdout setup ----------------------------- 14:50:21 starting OpenDaylight... 14:50:21 starting KARAF (karafoc) TransportPCE build... 14:50:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:21 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 14:50:21 14:50:21 cls = 14:50:21 func = . at 0x7fb49c964fe0> 14:50:21 when = 'setup' 14:50:21 reraise = (, ) 14:50:21 14:50:21 @classmethod 14:50:21 def from_call( 14:50:21 cls, 14:50:21 func: Callable[[], TResult], 14:50:21 when: Literal["collect", "setup", "call", "teardown"], 14:50:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:21 ) -> CallInfo[TResult]: 14:50:21 """Call func, wrapping the result in a CallInfo. 14:50:21 14:50:21 :param func: 14:50:21 The function to call. Called without arguments. 14:50:21 :type func: Callable[[], _pytest.runner.TResult] 14:50:21 :param when: 14:50:21 The phase in which the function is called. 14:50:21 :param reraise: 14:50:21 Exception or exceptions that shall propagate if raised by the 14:50:21 function, instead of being wrapped in the CallInfo. 14:50:21 """ 14:50:21 excinfo = None 14:50:21 instant = timing.Instant() 14:50:21 try: 14:50:21 > result: TResult | None = func() 14:50:21 ^^^^^^ 14:50:21 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:21 lambda: runtest_hook(item=item, **kwds), 14:50:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:21 yield 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:21 return (yield) 14:50:21 ^^^^^ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:21 item.session._setupstate.setup(item) 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:21 col.setup() 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:21 super().setup() 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:21 self._request._fillfixtures() 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:21 fixturedef = self._get_active_fixturedef(argname) 14:50:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:21 fixturedef.execute(request=subrequest) 14:50:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:21 14:50:21 self = 14:50:21 request = > 14:50:21 14:50:21 def execute(self, request: SubRequest) -> FixtureValue: 14:50:21 """Return the value of this fixture, executing it if not cached.""" 14:50:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:21 # This needs to be done before checking if we have a cached value, since 14:50:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:21 # parametrization, they finalize themselves and fixtures depending on it 14:50:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:21 # See #4871 14:50:21 requested_fixtures_that_should_finalize_us = [] 14:50:21 for argname in self.argnames: 14:50:21 fixturedef = request._get_active_fixturedef(argname) 14:50:21 # Saves requested fixtures in a list so we later can add our finalizer 14:50:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:21 # down first. This is generally handled by SetupState, but still currently 14:50:21 # needed when this fixture is not parametrized but depends on a parametrized 14:50:21 # fixture. 14:50:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:21 14:50:21 # Check for (and return) cached value/exception. 14:50:21 if self.cached_result is not None: 14:50:21 request_cache_key = self.cache_key(request) 14:50:21 cache_key = self.cached_result[1] 14:50:21 try: 14:50:21 # Attempt to make a normal == check: this might fail for objects 14:50:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:21 cache_hit = bool(request_cache_key == cache_key) 14:50:21 except (ValueError, RuntimeError): 14:50:21 # If the comparison raises, use 'is' as fallback. 14:50:21 cache_hit = request_cache_key is cache_key 14:50:21 14:50:21 if cache_hit: 14:50:21 if self.cached_result[2] is not None: 14:50:21 exc, exc_tb = self.cached_result[2] 14:50:21 raise exc.with_traceback(exc_tb) 14:50:21 else: 14:50:21 return self.cached_result[0] 14:50:21 # We have a previous but differently parametrized fixture instance 14:50:21 # so we need to tear it down before creating a new one. 14:50:21 self.finish(request) 14:50:21 assert self.cached_result is None 14:50:21 14:50:21 # Add finalizer to requested fixtures we saved previously. 14:50:21 # We make sure to do this after checking for cached value to avoid 14:50:21 # adding our finalizer multiple times. (#12135) 14:50:21 finalizer = functools.partial(self.finish, request=request) 14:50:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:21 parent_fixture.addfinalizer(finalizer) 14:50:21 14:50:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:21 # which is executed last. 14:50:21 > assert not self._finalizers 14:50:21 ^^^^^^^^^^^^^^^^^^^^ 14:50:21 E AssertionError 14:50:21 14:50:21 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:21 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49c9876a0> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49c94b240> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49e11afc0> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49c9853a0> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49c965120> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49f06c400> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49c94b240> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:50:22 14:50:22 cls = 14:50:22 func = . at 0x7fb49c965120> 14:50:22 when = 'setup' 14:50:22 reraise = (, ) 14:50:22 14:50:22 @classmethod 14:50:22 def from_call( 14:50:22 cls, 14:50:22 func: Callable[[], TResult], 14:50:22 when: Literal["collect", "setup", "call", "teardown"], 14:50:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:22 ) -> CallInfo[TResult]: 14:50:22 """Call func, wrapping the result in a CallInfo. 14:50:22 14:50:22 :param func: 14:50:22 The function to call. Called without arguments. 14:50:22 :type func: Callable[[], _pytest.runner.TResult] 14:50:22 :param when: 14:50:22 The phase in which the function is called. 14:50:22 :param reraise: 14:50:22 Exception or exceptions that shall propagate if raised by the 14:50:22 function, instead of being wrapped in the CallInfo. 14:50:22 """ 14:50:22 excinfo = None 14:50:22 instant = timing.Instant() 14:50:22 try: 14:50:22 > result: TResult | None = func() 14:50:22 ^^^^^^ 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:22 lambda: runtest_hook(item=item, **kwds), 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:22 yield 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:22 return (yield) 14:50:22 ^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:22 item.session._setupstate.setup(item) 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:22 col.setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:22 super().setup() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:22 self._request._fillfixtures() 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:22 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:22 fixturedef = self._get_active_fixturedef(argname) 14:50:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:22 fixturedef.execute(request=subrequest) 14:50:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:22 14:50:22 self = 14:50:22 request = > 14:50:22 14:50:22 def execute(self, request: SubRequest) -> FixtureValue: 14:50:22 """Return the value of this fixture, executing it if not cached.""" 14:50:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:22 # This needs to be done before checking if we have a cached value, since 14:50:22 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:22 # parametrization, they finalize themselves and fixtures depending on it 14:50:22 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:22 # See #4871 14:50:22 requested_fixtures_that_should_finalize_us = [] 14:50:22 for argname in self.argnames: 14:50:22 fixturedef = request._get_active_fixturedef(argname) 14:50:22 # Saves requested fixtures in a list so we later can add our finalizer 14:50:22 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:22 # down first. This is generally handled by SetupState, but still currently 14:50:22 # needed when this fixture is not parametrized but depends on a parametrized 14:50:22 # fixture. 14:50:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:22 14:50:22 # Check for (and return) cached value/exception. 14:50:22 if self.cached_result is not None: 14:50:22 request_cache_key = self.cache_key(request) 14:50:22 cache_key = self.cached_result[1] 14:50:22 try: 14:50:22 # Attempt to make a normal == check: this might fail for objects 14:50:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:22 cache_hit = bool(request_cache_key == cache_key) 14:50:22 except (ValueError, RuntimeError): 14:50:22 # If the comparison raises, use 'is' as fallback. 14:50:22 cache_hit = request_cache_key is cache_key 14:50:22 14:50:22 if cache_hit: 14:50:22 if self.cached_result[2] is not None: 14:50:22 exc, exc_tb = self.cached_result[2] 14:50:22 raise exc.with_traceback(exc_tb) 14:50:22 else: 14:50:22 return self.cached_result[0] 14:50:22 # We have a previous but differently parametrized fixture instance 14:50:22 # so we need to tear it down before creating a new one. 14:50:22 self.finish(request) 14:50:22 assert self.cached_result is None 14:50:22 14:50:22 # Add finalizer to requested fixtures we saved previously. 14:50:22 # We make sure to do this after checking for cached value to avoid 14:50:22 # adding our finalizer multiple times. (#12135) 14:50:22 finalizer = functools.partial(self.finish, request=request) 14:50:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:22 parent_fixture.addfinalizer(finalizer) 14:50:22 14:50:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:22 # which is executed last. 14:50:22 > assert not self._finalizers 14:50:22 ^^^^^^^^^^^^^^^^^^^^ 14:50:22 E AssertionError 14:50:22 14:50:22 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:22 =========================== short test summary info ============================ 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 14:50:22 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:50:22 10 errors in 102.01s (0:01:42) 14:50:22 Etests190: exit 1 (102.29 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc pid=4164 14:50:22 Etests190: FAIL ✖ in 1 minute 49.19 seconds 14:50:22 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:50:22 EEEEEEEEEEEEEEEEEEEEEE [100%] 14:50:24 ==================================== ERRORS ==================================== 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:50:24 14:50:24 cls = 14:50:24 14:50:24 @classmethod 14:50:24 def setUpClass(cls): 14:50:24 > cls.processes = test_utils.start_tpce() 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 14:50:24 transportpce_tests/1.2.1/test01_portmapping.py:33: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 def start_tpce(): 14:50:24 if 'NO_ODL_STARTUP' in os.environ: 14:50:24 print('No OpenDaylight instance to start!') 14:50:24 return [] 14:50:24 print('starting OpenDaylight...') 14:50:24 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:24 process = start_lighty() 14:50:24 else: 14:50:24 process = start_karaf() 14:50:24 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:24 print('OpenDaylight started !') 14:50:24 else: 14:50:24 print('OpenDaylight failed to start !') 14:50:24 shutdown_process(process) 14:50:24 for pid in process_list: 14:50:24 shutdown_process(pid) 14:50:24 > sys.exit(1) 14:50:24 E SystemExit: 1 14:50:24 14:50:24 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:24 ---------------------------- Captured stdout setup ----------------------------- 14:50:24 starting OpenDaylight... 14:50:24 starting KARAF (karaf121) TransportPCE build... 14:50:24 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:24 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9760> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddb560> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2416f2f740> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2415577560> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da93a0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9580> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddb600> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413dda8e0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddade0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddb600> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddaf20> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9580> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddade0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413ddaf20> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9800> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9bc0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9da0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413dda840> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f24139add00> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 14:50:24 14:50:24 cls = 14:50:24 func = . at 0x7f2413da9bc0> 14:50:24 when = 'setup' 14:50:24 reraise = (, ) 14:50:24 14:50:24 @classmethod 14:50:24 def from_call( 14:50:24 cls, 14:50:24 func: Callable[[], TResult], 14:50:24 when: Literal["collect", "setup", "call", "teardown"], 14:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:24 ) -> CallInfo[TResult]: 14:50:24 """Call func, wrapping the result in a CallInfo. 14:50:24 14:50:24 :param func: 14:50:24 The function to call. Called without arguments. 14:50:24 :type func: Callable[[], _pytest.runner.TResult] 14:50:24 :param when: 14:50:24 The phase in which the function is called. 14:50:24 :param reraise: 14:50:24 Exception or exceptions that shall propagate if raised by the 14:50:24 function, instead of being wrapped in the CallInfo. 14:50:24 """ 14:50:24 excinfo = None 14:50:24 instant = timing.Instant() 14:50:24 try: 14:50:24 > result: TResult | None = func() 14:50:24 ^^^^^^ 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:24 lambda: runtest_hook(item=item, **kwds), 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:24 yield 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:24 return (yield) 14:50:24 ^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:24 item.session._setupstate.setup(item) 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:24 col.setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:24 super().setup() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:24 self._request._fillfixtures() 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:24 fixturedef = self._get_active_fixturedef(argname) 14:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:24 fixturedef.execute(request=subrequest) 14:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:24 14:50:24 self = 14:50:24 request = > 14:50:24 14:50:24 def execute(self, request: SubRequest) -> FixtureValue: 14:50:24 """Return the value of this fixture, executing it if not cached.""" 14:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:24 # This needs to be done before checking if we have a cached value, since 14:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:24 # parametrization, they finalize themselves and fixtures depending on it 14:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:24 # See #4871 14:50:24 requested_fixtures_that_should_finalize_us = [] 14:50:24 for argname in self.argnames: 14:50:24 fixturedef = request._get_active_fixturedef(argname) 14:50:24 # Saves requested fixtures in a list so we later can add our finalizer 14:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:24 # down first. This is generally handled by SetupState, but still currently 14:50:24 # needed when this fixture is not parametrized but depends on a parametrized 14:50:24 # fixture. 14:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:24 14:50:24 # Check for (and return) cached value/exception. 14:50:24 if self.cached_result is not None: 14:50:24 request_cache_key = self.cache_key(request) 14:50:24 cache_key = self.cached_result[1] 14:50:24 try: 14:50:24 # Attempt to make a normal == check: this might fail for objects 14:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:24 cache_hit = bool(request_cache_key == cache_key) 14:50:24 except (ValueError, RuntimeError): 14:50:24 # If the comparison raises, use 'is' as fallback. 14:50:24 cache_hit = request_cache_key is cache_key 14:50:24 14:50:24 if cache_hit: 14:50:24 if self.cached_result[2] is not None: 14:50:24 exc, exc_tb = self.cached_result[2] 14:50:24 raise exc.with_traceback(exc_tb) 14:50:24 else: 14:50:24 return self.cached_result[0] 14:50:24 # We have a previous but differently parametrized fixture instance 14:50:24 # so we need to tear it down before creating a new one. 14:50:24 self.finish(request) 14:50:24 assert self.cached_result is None 14:50:24 14:50:24 # Add finalizer to requested fixtures we saved previously. 14:50:24 # We make sure to do this after checking for cached value to avoid 14:50:24 # adding our finalizer multiple times. (#12135) 14:50:24 finalizer = functools.partial(self.finish, request=request) 14:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:24 parent_fixture.addfinalizer(finalizer) 14:50:24 14:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:24 # which is executed last. 14:50:24 > assert not self._finalizers 14:50:24 ^^^^^^^^^^^^^^^^^^^^ 14:50:24 E AssertionError 14:50:24 14:50:24 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:24 =========================== short test summary info ============================ 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 14:50:24 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 14:50:24 21 errors in 104.01s (0:01:44) 14:50:24 Etests121: exit 1 (104.30 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 pid=4175 14:50:24 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 51.34 seconds 14:50:29 tests71: freeze> python -m pip freeze --all 14:50:29 E [100%] 14:50:29 ==================================== ERRORS ==================================== 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 14:50:29 14:50:29 cls = 14:50:29 14:50:29 @classmethod 14:50:29 def setUpClass(cls): 14:50:29 cls.init_failed = False 14:50:29 os.environ['JAVA_MIN_MEM'] = '1024M' 14:50:29 os.environ['JAVA_MAX_MEM'] = '4096M' 14:50:29 > cls.processes = test_utils.start_tpce() 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 14:50:29 transportpce_tests/tapi/test01_abstracted_topology.py:148: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 def start_tpce(): 14:50:29 if 'NO_ODL_STARTUP' in os.environ: 14:50:29 print('No OpenDaylight instance to start!') 14:50:29 return [] 14:50:29 print('starting OpenDaylight...') 14:50:29 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:29 process = start_lighty() 14:50:29 else: 14:50:29 process = start_karaf() 14:50:29 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:29 print('OpenDaylight started !') 14:50:29 else: 14:50:29 print('OpenDaylight failed to start !') 14:50:29 shutdown_process(process) 14:50:29 for pid in process_list: 14:50:29 shutdown_process(pid) 14:50:29 > sys.exit(1) 14:50:29 E SystemExit: 1 14:50:29 14:50:29 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:29 ---------------------------- Captured stdout setup ----------------------------- 14:50:29 starting OpenDaylight... 14:50:29 starting KARAF (karaf221) TransportPCE build... 14:50:29 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecf65bc0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb34c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ee72f380> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef667740> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb3560> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb3880> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecf65bc0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecf65bc0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2e80> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2660> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2d40> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2660> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59a80> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecf64e00> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59c60> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecf64e00> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59f80> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ef6191c0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59260> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc593a0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59120> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc5a480> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc58900> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc5aa20> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc58720> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc58ea0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59a80> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc59260> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc5a020> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc594e0> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecfb2700> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 14:50:29 14:50:29 cls = 14:50:29 func = . at 0x7fe2ecc5b560> 14:50:29 when = 'setup' 14:50:29 reraise = (, ) 14:50:29 14:50:29 @classmethod 14:50:29 def from_call( 14:50:29 cls, 14:50:29 func: Callable[[], TResult], 14:50:29 when: Literal["collect", "setup", "call", "teardown"], 14:50:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:29 ) -> CallInfo[TResult]: 14:50:29 """Call func, wrapping the result in a CallInfo. 14:50:29 14:50:29 :param func: 14:50:29 The function to call. Called without arguments. 14:50:29 :type func: Callable[[], _pytest.runner.TResult] 14:50:29 :param when: 14:50:29 The phase in which the function is called. 14:50:29 :param reraise: 14:50:29 Exception or exceptions that shall propagate if raised by the 14:50:29 function, instead of being wrapped in the CallInfo. 14:50:29 """ 14:50:29 excinfo = None 14:50:29 instant = timing.Instant() 14:50:29 try: 14:50:29 > result: TResult | None = func() 14:50:29 ^^^^^^ 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:29 lambda: runtest_hook(item=item, **kwds), 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:29 yield 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:29 return (yield) 14:50:29 ^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:29 item.session._setupstate.setup(item) 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:29 col.setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:29 super().setup() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:29 self._request._fillfixtures() 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:29 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:29 fixturedef = self._get_active_fixturedef(argname) 14:50:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:29 fixturedef.execute(request=subrequest) 14:50:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:29 14:50:29 self = 14:50:29 request = > 14:50:29 14:50:29 def execute(self, request: SubRequest) -> FixtureValue: 14:50:29 """Return the value of this fixture, executing it if not cached.""" 14:50:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:29 # This needs to be done before checking if we have a cached value, since 14:50:29 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:29 # parametrization, they finalize themselves and fixtures depending on it 14:50:29 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:29 # See #4871 14:50:29 requested_fixtures_that_should_finalize_us = [] 14:50:29 for argname in self.argnames: 14:50:29 fixturedef = request._get_active_fixturedef(argname) 14:50:29 # Saves requested fixtures in a list so we later can add our finalizer 14:50:29 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:29 # down first. This is generally handled by SetupState, but still currently 14:50:29 # needed when this fixture is not parametrized but depends on a parametrized 14:50:29 # fixture. 14:50:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:29 14:50:29 # Check for (and return) cached value/exception. 14:50:29 if self.cached_result is not None: 14:50:29 request_cache_key = self.cache_key(request) 14:50:29 cache_key = self.cached_result[1] 14:50:29 try: 14:50:29 # Attempt to make a normal == check: this might fail for objects 14:50:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:29 cache_hit = bool(request_cache_key == cache_key) 14:50:29 except (ValueError, RuntimeError): 14:50:29 # If the comparison raises, use 'is' as fallback. 14:50:29 cache_hit = request_cache_key is cache_key 14:50:29 14:50:29 if cache_hit: 14:50:29 if self.cached_result[2] is not None: 14:50:29 exc, exc_tb = self.cached_result[2] 14:50:29 raise exc.with_traceback(exc_tb) 14:50:29 else: 14:50:29 return self.cached_result[0] 14:50:29 # We have a previous but differently parametrized fixture instance 14:50:29 # so we need to tear it down before creating a new one. 14:50:29 self.finish(request) 14:50:29 assert self.cached_result is None 14:50:29 14:50:29 # Add finalizer to requested fixtures we saved previously. 14:50:29 # We make sure to do this after checking for cached value to avoid 14:50:29 # adding our finalizer multiple times. (#12135) 14:50:29 finalizer = functools.partial(self.finish, request=request) 14:50:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:29 parent_fixture.addfinalizer(finalizer) 14:50:29 14:50:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:29 # which is executed last. 14:50:29 > assert not self._finalizers 14:50:29 ^^^^^^^^^^^^^^^^^^^^ 14:50:29 E AssertionError 14:50:29 14:50:29 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:29 =========================== short test summary info ============================ 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 14:50:29 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 14:50:29 51 errors in 109.69s (0:01:49) 14:50:29 tests_tapi: exit 1 (109.96 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi pid=4186 14:50:30 tests_tapi: FAIL ✖ in 1 minute 57.05 seconds 14:50:30 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:50:30 tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 14:50:30 using environment variables from ./karaf71.env 14:50:30 pytest -q transportpce_tests/7.1/test01_portmapping.py 14:50:30 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:50:36 tests221: freeze> python -m pip freeze --all 14:50:36 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:50:36 tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 14:50:36 using environment variables from ./karaf221.env 14:50:36 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 14:52:10 EEEEEEEEEEEE [100%] 14:52:12 ==================================== ERRORS ==================================== 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 14:52:12 14:52:12 cls = 14:52:12 14:52:12 @classmethod 14:52:12 def setUpClass(cls): 14:52:12 > cls.processes = test_utils.start_tpce() 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 14:52:12 transportpce_tests/7.1/test01_portmapping.py:32: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 def start_tpce(): 14:52:12 if 'NO_ODL_STARTUP' in os.environ: 14:52:12 print('No OpenDaylight instance to start!') 14:52:12 return [] 14:52:12 print('starting OpenDaylight...') 14:52:12 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:52:12 process = start_lighty() 14:52:12 else: 14:52:12 process = start_karaf() 14:52:12 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:52:12 print('OpenDaylight started !') 14:52:12 else: 14:52:12 print('OpenDaylight failed to start !') 14:52:12 shutdown_process(process) 14:52:12 for pid in process_list: 14:52:12 shutdown_process(pid) 14:52:12 > sys.exit(1) 14:52:12 E SystemExit: 1 14:52:12 14:52:12 transportpce_tests/common/test_utils.py:232: SystemExit 14:52:12 ---------------------------- Captured stdout setup ----------------------------- 14:52:12 starting OpenDaylight... 14:52:12 starting KARAF (karaf71) TransportPCE build... 14:52:12 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3e5a700> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3757740> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d5e54ea0> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3e5a700> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d4f0fe20> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3e5a700> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3757600> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3755d00> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3757920> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d37577e0> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 14:52:12 14:52:12 cls = 14:52:12 func = . at 0x7f55d3e5a700> 14:52:12 when = 'setup' 14:52:12 reraise = (, ) 14:52:12 14:52:12 @classmethod 14:52:12 def from_call( 14:52:12 cls, 14:52:12 func: Callable[[], TResult], 14:52:12 when: Literal["collect", "setup", "call", "teardown"], 14:52:12 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:12 ) -> CallInfo[TResult]: 14:52:12 """Call func, wrapping the result in a CallInfo. 14:52:12 14:52:12 :param func: 14:52:12 The function to call. Called without arguments. 14:52:12 :type func: Callable[[], _pytest.runner.TResult] 14:52:12 :param when: 14:52:12 The phase in which the function is called. 14:52:12 :param reraise: 14:52:12 Exception or exceptions that shall propagate if raised by the 14:52:12 function, instead of being wrapped in the CallInfo. 14:52:12 """ 14:52:12 excinfo = None 14:52:12 instant = timing.Instant() 14:52:12 try: 14:52:12 > result: TResult | None = func() 14:52:12 ^^^^^^ 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:12 lambda: runtest_hook(item=item, **kwds), 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:12 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:12 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:12 yield 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:12 return (yield) 14:52:12 ^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:12 item.session._setupstate.setup(item) 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:12 col.setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:12 super().setup() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:12 self._request._fillfixtures() 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:12 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:12 fixturedef = self._get_active_fixturedef(argname) 14:52:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:12 fixturedef.execute(request=subrequest) 14:52:12 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:12 14:52:12 self = 14:52:12 request = > 14:52:12 14:52:12 def execute(self, request: SubRequest) -> FixtureValue: 14:52:12 """Return the value of this fixture, executing it if not cached.""" 14:52:12 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:12 # This needs to be done before checking if we have a cached value, since 14:52:12 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:12 # parametrization, they finalize themselves and fixtures depending on it 14:52:12 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:12 # See #4871 14:52:12 requested_fixtures_that_should_finalize_us = [] 14:52:12 for argname in self.argnames: 14:52:12 fixturedef = request._get_active_fixturedef(argname) 14:52:12 # Saves requested fixtures in a list so we later can add our finalizer 14:52:12 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:12 # down first. This is generally handled by SetupState, but still currently 14:52:12 # needed when this fixture is not parametrized but depends on a parametrized 14:52:12 # fixture. 14:52:12 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:12 14:52:12 # Check for (and return) cached value/exception. 14:52:12 if self.cached_result is not None: 14:52:12 request_cache_key = self.cache_key(request) 14:52:12 cache_key = self.cached_result[1] 14:52:12 try: 14:52:12 # Attempt to make a normal == check: this might fail for objects 14:52:12 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:12 cache_hit = bool(request_cache_key == cache_key) 14:52:12 except (ValueError, RuntimeError): 14:52:12 # If the comparison raises, use 'is' as fallback. 14:52:12 cache_hit = request_cache_key is cache_key 14:52:12 14:52:12 if cache_hit: 14:52:12 if self.cached_result[2] is not None: 14:52:12 exc, exc_tb = self.cached_result[2] 14:52:12 raise exc.with_traceback(exc_tb) 14:52:12 else: 14:52:12 return self.cached_result[0] 14:52:12 # We have a previous but differently parametrized fixture instance 14:52:12 # so we need to tear it down before creating a new one. 14:52:12 self.finish(request) 14:52:12 assert self.cached_result is None 14:52:12 14:52:12 # Add finalizer to requested fixtures we saved previously. 14:52:12 # We make sure to do this after checking for cached value to avoid 14:52:12 # adding our finalizer multiple times. (#12135) 14:52:12 finalizer = functools.partial(self.finish, request=request) 14:52:12 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:12 parent_fixture.addfinalizer(finalizer) 14:52:12 14:52:12 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:12 # which is executed last. 14:52:12 > assert not self._finalizers 14:52:12 ^^^^^^^^^^^^^^^^^^^^ 14:52:12 E AssertionError 14:52:12 14:52:12 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:12 =========================== short test summary info ============================ 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 14:52:12 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 14:52:12 12 errors in 102.61s (0:01:42) 14:52:12 tests71: exit 1 (102.89 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 pid=4381 14:52:17 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:52:23 ==================================== ERRORS ==================================== 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:52:23 14:52:23 cls = 14:52:23 14:52:23 @classmethod 14:52:23 def setUpClass(cls): 14:52:23 > cls.processes = test_utils.start_tpce() 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 14:52:23 transportpce_tests/2.2.1/test01_portmapping.py:33: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 def start_tpce(): 14:52:23 if 'NO_ODL_STARTUP' in os.environ: 14:52:23 print('No OpenDaylight instance to start!') 14:52:23 return [] 14:52:23 print('starting OpenDaylight...') 14:52:23 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:52:23 process = start_lighty() 14:52:23 else: 14:52:23 process = start_karaf() 14:52:23 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:52:23 print('OpenDaylight started !') 14:52:23 else: 14:52:23 print('OpenDaylight failed to start !') 14:52:23 shutdown_process(process) 14:52:23 for pid in process_list: 14:52:23 shutdown_process(pid) 14:52:23 > sys.exit(1) 14:52:23 E SystemExit: 1 14:52:23 14:52:23 transportpce_tests/common/test_utils.py:232: SystemExit 14:52:23 ---------------------------- Captured stdout setup ----------------------------- 14:52:23 starting OpenDaylight... 14:52:23 starting KARAF (karaf221) TransportPCE build... 14:52:23 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:52:23 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024b560> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583028fec0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f5831a16a20> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58329684a0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eaca0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583028fec0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f5831a16a20> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302e8cc0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024b6a0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583028fec0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302e8360> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024b6a0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eb9c0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eb880> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a020> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a020> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302ebb00> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302e8b80> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302ebc40> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eb880> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302e8360> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eb1a0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eb100> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302ea5c0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eaca0> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f58302eb740> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 14:52:23 14:52:23 cls = 14:52:23 func = . at 0x7f583024a340> 14:52:23 when = 'setup' 14:52:23 reraise = (, ) 14:52:23 14:52:23 @classmethod 14:52:23 def from_call( 14:52:23 cls, 14:52:23 func: Callable[[], TResult], 14:52:23 when: Literal["collect", "setup", "call", "teardown"], 14:52:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:23 ) -> CallInfo[TResult]: 14:52:23 """Call func, wrapping the result in a CallInfo. 14:52:23 14:52:23 :param func: 14:52:23 The function to call. Called without arguments. 14:52:23 :type func: Callable[[], _pytest.runner.TResult] 14:52:23 :param when: 14:52:23 The phase in which the function is called. 14:52:23 :param reraise: 14:52:23 Exception or exceptions that shall propagate if raised by the 14:52:23 function, instead of being wrapped in the CallInfo. 14:52:23 """ 14:52:23 excinfo = None 14:52:23 instant = timing.Instant() 14:52:23 try: 14:52:23 > result: TResult | None = func() 14:52:23 ^^^^^^ 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:23 lambda: runtest_hook(item=item, **kwds), 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:23 yield 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:23 return (yield) 14:52:23 ^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:23 item.session._setupstate.setup(item) 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:23 col.setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:23 super().setup() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:23 self._request._fillfixtures() 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:23 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:23 fixturedef = self._get_active_fixturedef(argname) 14:52:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:23 fixturedef.execute(request=subrequest) 14:52:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:23 14:52:23 self = 14:52:23 request = > 14:52:23 14:52:23 def execute(self, request: SubRequest) -> FixtureValue: 14:52:23 """Return the value of this fixture, executing it if not cached.""" 14:52:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:23 # This needs to be done before checking if we have a cached value, since 14:52:23 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:23 # parametrization, they finalize themselves and fixtures depending on it 14:52:23 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:23 # See #4871 14:52:23 requested_fixtures_that_should_finalize_us = [] 14:52:23 for argname in self.argnames: 14:52:23 fixturedef = request._get_active_fixturedef(argname) 14:52:23 # Saves requested fixtures in a list so we later can add our finalizer 14:52:23 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:23 # down first. This is generally handled by SetupState, but still currently 14:52:23 # needed when this fixture is not parametrized but depends on a parametrized 14:52:23 # fixture. 14:52:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:23 14:52:23 # Check for (and return) cached value/exception. 14:52:23 if self.cached_result is not None: 14:52:23 request_cache_key = self.cache_key(request) 14:52:23 cache_key = self.cached_result[1] 14:52:23 try: 14:52:23 # Attempt to make a normal == check: this might fail for objects 14:52:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:23 cache_hit = bool(request_cache_key == cache_key) 14:52:23 except (ValueError, RuntimeError): 14:52:23 # If the comparison raises, use 'is' as fallback. 14:52:23 cache_hit = request_cache_key is cache_key 14:52:23 14:52:23 if cache_hit: 14:52:23 if self.cached_result[2] is not None: 14:52:23 exc, exc_tb = self.cached_result[2] 14:52:23 raise exc.with_traceback(exc_tb) 14:52:23 else: 14:52:23 return self.cached_result[0] 14:52:23 # We have a previous but differently parametrized fixture instance 14:52:23 # so we need to tear it down before creating a new one. 14:52:23 self.finish(request) 14:52:23 assert self.cached_result is None 14:52:23 14:52:23 # Add finalizer to requested fixtures we saved previously. 14:52:23 # We make sure to do this after checking for cached value to avoid 14:52:23 # adding our finalizer multiple times. (#12135) 14:52:23 finalizer = functools.partial(self.finish, request=request) 14:52:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:23 parent_fixture.addfinalizer(finalizer) 14:52:23 14:52:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:23 # which is executed last. 14:52:23 > assert not self._finalizers 14:52:23 ^^^^^^^^^^^^^^^^^^^^ 14:52:23 E AssertionError 14:52:23 14:52:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:23 =========================== short test summary info ============================ 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 14:52:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 14:52:23 35 errors in 106.71s (0:01:46) 14:52:23 tests71: FAIL ✖ in 1 minute 50.85 seconds 14:52:23 tests221: exit 1 (107.03 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 pid=4403 14:52:23 tests221: FAIL ✖ in 1 minute 53.78 seconds 14:52:23 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:52:30 tests_hybrid: freeze> python -m pip freeze --all 14:52:30 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.7.0 14:52:30 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid 14:52:30 using environment variables from ./karaf221.env 14:52:30 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 14:54:10 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:54:20 ==================================== ERRORS ==================================== 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 14:54:20 14:54:20 cls = 14:54:20 14:54:20 @classmethod 14:54:20 def setUpClass(cls): 14:54:20 > cls.processes = test_utils.start_tpce() 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 14:54:20 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 def start_tpce(): 14:54:20 if 'NO_ODL_STARTUP' in os.environ: 14:54:20 print('No OpenDaylight instance to start!') 14:54:20 return [] 14:54:20 print('starting OpenDaylight...') 14:54:20 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:54:20 process = start_lighty() 14:54:20 else: 14:54:20 process = start_karaf() 14:54:20 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:54:20 print('OpenDaylight started !') 14:54:20 else: 14:54:20 print('OpenDaylight failed to start !') 14:54:20 shutdown_process(process) 14:54:20 for pid in process_list: 14:54:20 shutdown_process(pid) 14:54:20 > sys.exit(1) 14:54:20 E SystemExit: 1 14:54:20 14:54:20 transportpce_tests/common/test_utils.py:232: SystemExit 14:54:20 ---------------------------- Captured stdout setup ----------------------------- 14:54:20 starting OpenDaylight... 14:54:20 starting KARAF (karaf221) TransportPCE build... 14:54:20 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a64e3e0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eaac0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8bdc27a0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a64fba0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a64ff60> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a64fba0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ea3e0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c360> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8cd198a0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a64ff60> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb420> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c040> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8cd198a0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb880> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8cd198a0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c220> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb880> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8cd198a0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c220> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c220> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6e8040> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6e8040> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ea660> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eade0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eaca0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ebd80> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb6a0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ebc40> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb600> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb740> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ebd80> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eaca0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6e8040> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb740> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eb880> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ea660> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eab60> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6eade0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a60c400> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 14:54:20 14:54:20 cls = 14:54:20 func = . at 0x7f7c8a6ea3e0> 14:54:20 when = 'setup' 14:54:20 reraise = (, ) 14:54:20 14:54:20 @classmethod 14:54:20 def from_call( 14:54:20 cls, 14:54:20 func: Callable[[], TResult], 14:54:20 when: Literal["collect", "setup", "call", "teardown"], 14:54:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:20 ) -> CallInfo[TResult]: 14:54:20 """Call func, wrapping the result in a CallInfo. 14:54:20 14:54:20 :param func: 14:54:20 The function to call. Called without arguments. 14:54:20 :type func: Callable[[], _pytest.runner.TResult] 14:54:20 :param when: 14:54:20 The phase in which the function is called. 14:54:20 :param reraise: 14:54:20 Exception or exceptions that shall propagate if raised by the 14:54:20 function, instead of being wrapped in the CallInfo. 14:54:20 """ 14:54:20 excinfo = None 14:54:20 instant = timing.Instant() 14:54:20 try: 14:54:20 > result: TResult | None = func() 14:54:20 ^^^^^^ 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:20 lambda: runtest_hook(item=item, **kwds), 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:20 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:20 yield 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:20 return (yield) 14:54:20 ^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:20 item.session._setupstate.setup(item) 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:20 col.setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:20 super().setup() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:20 self._request._fillfixtures() 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:20 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:20 fixturedef = self._get_active_fixturedef(argname) 14:54:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:20 fixturedef.execute(request=subrequest) 14:54:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:20 14:54:20 self = 14:54:20 request = > 14:54:20 14:54:20 def execute(self, request: SubRequest) -> FixtureValue: 14:54:20 """Return the value of this fixture, executing it if not cached.""" 14:54:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:20 # This needs to be done before checking if we have a cached value, since 14:54:20 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:20 # parametrization, they finalize themselves and fixtures depending on it 14:54:20 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:20 # See #4871 14:54:20 requested_fixtures_that_should_finalize_us = [] 14:54:20 for argname in self.argnames: 14:54:20 fixturedef = request._get_active_fixturedef(argname) 14:54:20 # Saves requested fixtures in a list so we later can add our finalizer 14:54:20 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:20 # down first. This is generally handled by SetupState, but still currently 14:54:20 # needed when this fixture is not parametrized but depends on a parametrized 14:54:20 # fixture. 14:54:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:20 14:54:20 # Check for (and return) cached value/exception. 14:54:20 if self.cached_result is not None: 14:54:20 request_cache_key = self.cache_key(request) 14:54:20 cache_key = self.cached_result[1] 14:54:20 try: 14:54:20 # Attempt to make a normal == check: this might fail for objects 14:54:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:20 cache_hit = bool(request_cache_key == cache_key) 14:54:20 except (ValueError, RuntimeError): 14:54:20 # If the comparison raises, use 'is' as fallback. 14:54:20 cache_hit = request_cache_key is cache_key 14:54:20 14:54:20 if cache_hit: 14:54:20 if self.cached_result[2] is not None: 14:54:20 exc, exc_tb = self.cached_result[2] 14:54:20 raise exc.with_traceback(exc_tb) 14:54:20 else: 14:54:20 return self.cached_result[0] 14:54:20 # We have a previous but differently parametrized fixture instance 14:54:20 # so we need to tear it down before creating a new one. 14:54:20 self.finish(request) 14:54:20 assert self.cached_result is None 14:54:20 14:54:20 # Add finalizer to requested fixtures we saved previously. 14:54:20 # We make sure to do this after checking for cached value to avoid 14:54:20 # adding our finalizer multiple times. (#12135) 14:54:20 finalizer = functools.partial(self.finish, request=request) 14:54:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:20 parent_fixture.addfinalizer(finalizer) 14:54:20 14:54:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:20 # which is executed last. 14:54:20 > assert not self._finalizers 14:54:20 ^^^^^^^^^^^^^^^^^^^^ 14:54:20 E AssertionError 14:54:20 14:54:20 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:20 =========================== short test summary info ============================ 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 14:54:20 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 14:54:20 51 errors in 109.91s (0:01:49) 14:54:20 tests_hybrid: exit 1 (110.21 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid pid=4528 14:54:20 buildcontroller: FAIL code 127 (15.02=setup[9.35]+cmd[5.67] seconds) 14:54:20 sims: OK (11.98=setup[7.58]+cmd[4.41] seconds) 14:54:20 build_karaf_tests121: FAIL code 127 (8.32=setup[8.31]+cmd[0.00] seconds) 14:54:20 testsPCE: FAIL code 1 (172.22=setup[48.12]+cmd[124.10] seconds) 14:54:20 tests121: FAIL code 1 (111.34=setup[7.04]+cmd[104.30] seconds) 14:54:20 build_karaf_tests221: FAIL code 127 (6.43=setup[6.43]+cmd[0.00] seconds) 14:54:20 tests_tapi: FAIL code 1 (117.05=setup[7.09]+cmd[109.96] seconds) 14:54:20 tests221: FAIL code 1 (113.78=setup[6.75]+cmd[107.03] seconds) 14:54:20 build_karaf_tests71: FAIL code 127 (6.65=setup[6.65]+cmd[0.00] seconds) 14:54:20 tests71: FAIL code 1 (110.85=setup[7.96]+cmd[102.89] seconds) 14:54:20 build_karaf_tests190: FAIL code 127 (7.63=setup[7.63]+cmd[0.00] seconds) 14:54:20 tests190: FAIL code 1 (109.19=setup[6.90]+cmd[102.29] seconds) 14:54:20 tests_hybrid: FAIL code 1 (116.80=setup[6.59]+cmd[110.21] seconds) 14:54:20 buildlighty: FAIL code 9 (7.40=setup[7.39]+cmd[0.01] seconds) 14:54:20 docs: OK (26.45=setup[24.17]+cmd[2.28] seconds) 14:54:20 docs-linkcheck: OK (32.79=setup[25.67]+cmd[7.12] seconds) 14:54:20 checkbashisms: OK (3.11=setup[1.89]+cmd[0.01,0.04,1.17] seconds) 14:54:20 pre-commit: OK (49.76=setup[3.11]+cmd[0.00,0.00,40.32,6.32] seconds) 14:54:20 pylint: OK (24.90=setup[4.90]+cmd[20.00] seconds) 14:54:20 evaluation failed :( (566.75 seconds) 14:54:20 + tox_status=1 14:54:20 + echo '---> Completed tox runs' 14:54:20 ---> Completed tox runs 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/build_karaf_tests121/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=build_karaf_tests121 14:54:20 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests121 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/build_karaf_tests190/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=build_karaf_tests190 14:54:20 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests190 14:54:20 + for i in .tox/*/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 ++ echo .tox/build_karaf_tests221/log 14:54:20 + tox_env=build_karaf_tests221 14:54:20 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests221 14:54:20 + for i in .tox/*/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 ++ echo .tox/build_karaf_tests71/log 14:54:20 + tox_env=build_karaf_tests71 14:54:20 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests71 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/buildcontroller/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=buildcontroller 14:54:20 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildcontroller 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/buildlighty/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=buildlighty 14:54:20 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildlighty 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/checkbashisms/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=checkbashisms 14:54:20 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/checkbashisms 14:54:20 + for i in .tox/*/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 ++ echo .tox/docs-linkcheck/log 14:54:20 + tox_env=docs-linkcheck 14:54:20 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs-linkcheck 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/docs/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=docs 14:54:20 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs 14:54:20 + for i in .tox/*/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 ++ echo .tox/pre-commit/log 14:54:20 + tox_env=pre-commit 14:54:20 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pre-commit 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/pylint/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=pylint 14:54:20 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pylint 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/sims/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=sims 14:54:20 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/sims 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/tests121/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=tests121 14:54:20 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests121 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/tests190/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=tests190 14:54:20 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests190 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/tests221/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=tests221 14:54:20 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests221 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/tests71/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=tests71 14:54:20 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests71 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/testsPCE/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=testsPCE 14:54:20 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/testsPCE 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/tests_hybrid/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=tests_hybrid 14:54:20 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_hybrid 14:54:20 + for i in .tox/*/log 14:54:20 ++ echo .tox/tests_tapi/log 14:54:20 ++ awk -F/ '{print $2}' 14:54:20 + tox_env=tests_tapi 14:54:20 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_tapi 14:54:20 + DOC_DIR=docs/_build/html 14:54:20 + [[ -d docs/_build/html ]] 14:54:20 + echo '---> Archiving generated docs' 14:54:20 ---> Archiving generated docs 14:54:20 + mv docs/_build/html /w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:54:20 + echo '---> tox-run.sh ends' 14:54:20 ---> tox-run.sh ends 14:54:20 + test 1 -eq 0 14:54:20 + exit 1 14:54:20 ++ '[' 1 = 1 ']' 14:54:20 ++ '[' -x /usr/bin/clear_console ']' 14:54:20 ++ /usr/bin/clear_console -q 14:54:20 Build step 'Execute shell' marked build as failure 14:54:21 $ ssh-agent -k 14:54:21 unset SSH_AUTH_SOCK; 14:54:21 unset SSH_AGENT_PID; 14:54:21 echo Agent pid 1549 killed; 14:54:21 [ssh-agent] Stopped. 14:54:21 [PostBuildScript] - [INFO] Executing post build scripts. 14:54:21 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins1477506596179144945.sh 14:54:21 ---> sysstat.sh 14:54:21 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins18215071463122736936.sh 14:54:21 ---> package-listing.sh 14:54:21 ++ facter osfamily 14:54:21 ++ tr '[:upper:]' '[:lower:]' 14:54:22 + OS_FAMILY=debian 14:54:22 + workspace=/w/workspace/transportpce-tox-verify-vanadium 14:54:22 + START_PACKAGES=/tmp/packages_start.txt 14:54:22 + END_PACKAGES=/tmp/packages_end.txt 14:54:22 + DIFF_PACKAGES=/tmp/packages_diff.txt 14:54:22 + PACKAGES=/tmp/packages_start.txt 14:54:22 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:54:22 + PACKAGES=/tmp/packages_end.txt 14:54:22 + case "${OS_FAMILY}" in 14:54:22 + dpkg -l 14:54:22 + grep '^ii' 14:54:22 + '[' -f /tmp/packages_start.txt ']' 14:54:22 + '[' -f /tmp/packages_end.txt ']' 14:54:22 + diff /tmp/packages_start.txt /tmp/packages_end.txt 14:54:22 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:54:22 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:54:22 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:54:22 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins4419755733799911308.sh 14:54:22 ---> capture-instance-metadata.sh 14:54:22 Setup pyenv: 14:54:22 system 14:54:22 3.8.20 14:54:22 3.9.20 14:54:22 3.10.15 14:54:22 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:22 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3J4y from file:/tmp/.os_lf_venv 14:54:22 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:24 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:34 lf-activate-venv(): INFO: Adding /tmp/venv-3J4y/bin to PATH 14:54:34 INFO: Running in OpenStack, capturing instance metadata 14:54:34 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins7116395394353468525.sh 14:54:34 provisioning config files... 14:54:35 Could not find credentials [logs] for transportpce-tox-verify-vanadium #22 14:54:35 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-vanadium@tmp/config17874048599744577152tmp 14:54:35 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 14:54:35 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 14:54:35 provisioning config files... 14:54:35 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 14:54:35 [EnvInject] - Injecting environment variables from a build step. 14:54:35 [EnvInject] - Injecting as environment variables the properties content 14:54:35 SERVER_ID=logs 14:54:35 14:54:35 [EnvInject] - Variables injected successfully. 14:54:35 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins6051601312472762382.sh 14:54:35 ---> create-netrc.sh 14:54:35 WARN: Log server credential not found. 14:54:35 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins10909463649316027483.sh 14:54:35 ---> python-tools-install.sh 14:54:35 Setup pyenv: 14:54:35 system 14:54:35 3.8.20 14:54:35 3.9.20 14:54:35 3.10.15 14:54:35 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:36 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3J4y from file:/tmp/.os_lf_venv 14:54:36 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:37 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:47 lf-activate-venv(): INFO: Adding /tmp/venv-3J4y/bin to PATH 14:54:47 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins10674549797804980912.sh 14:54:47 ---> uv-install.sh 14:54:47 uv 0.12.9 is already installed 14:54:47 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:54:47 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins5572441814919975224.sh 14:54:47 ---> sudo-logs.sh 14:54:47 Archiving 'sudo' log.. 14:54:47 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins2759116240848914874.sh 14:54:47 ---> job-cost.sh 14:54:47 INFO: Activating Python virtual environment... 14:54:47 Setup pyenv: 14:54:47 system 14:54:47 3.8.20 14:54:47 3.9.20 14:54:47 3.10.15 14:54:48 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:48 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3J4y from file:/tmp/.os_lf_venv 14:54:48 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:50 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 14:54:56 lf-activate-venv(): INFO: Adding /tmp/venv-3J4y/bin to PATH 14:54:56 INFO: No stack-cost file found 14:54:56 INFO: Instance uptime: 777s 14:54:56 INFO: Fetching instance metadata (attempt 1 of 3)... 14:54:56 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 14:54:57 INFO: Successfully fetched instance metadata 14:54:57 INFO: Instance type: v3-standard-4 14:54:57 INFO: Retrieving pricing info for: v3-standard-4 14:54:57 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 14:54:57 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=777 14:54:57 INFO: Successfully fetched Vexxhost pricing API 14:54:57 INFO: Retrieved cost: 0.11 14:54:57 INFO: Retrieved resource: v3-standard-4 14:54:57 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-vanadium/archives/cost 14:54:57 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-vanadium/archives/cost.csv 14:54:57 INFO: Successfully archived job cost data 14:54:57 DEBUG: Cost data: transportpce-tox-verify-vanadium,22,2026-09-04 14:54:57,v3-standard-4,777,0.11,0.00,FAILURE 14:54:57 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins5797480757776387196.sh 14:54:57 ---> logs-deploy.sh 14:54:57 Setup pyenv: 14:54:57 system 14:54:57 3.8.20 14:54:57 3.9.20 14:54:57 3.10.15 14:54:57 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:57 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3J4y from file:/tmp/.os_lf_venv 14:54:57 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:59 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 14:55:10 lf-activate-venv(): INFO: Adding /tmp/venv-3J4y/bin to PATH 14:55:10 WARNING: Nexus logging server not set 14:55:10 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-vanadium/22/ 14:55:10 INFO: archiving logs to S3 14:55:11 ---> uname -a: 14:55:11 Linux prd-ubuntu2204-docker-4c-16g-16 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 14:55:11 14:55:11 14:55:11 ---> lscpu: 14:55:11 Architecture: x86_64 14:55:11 CPU op-mode(s): 32-bit, 64-bit 14:55:11 Address sizes: 40 bits physical, 48 bits virtual 14:55:11 Byte Order: Little Endian 14:55:11 CPU(s): 4 14:55:11 On-line CPU(s) list: 0-3 14:55:11 Vendor ID: AuthenticAMD 14:55:11 Model name: AMD EPYC-Rome Processor 14:55:11 CPU family: 23 14:55:11 Model: 49 14:55:11 Thread(s) per core: 1 14:55:11 Core(s) per socket: 1 14:55:11 Socket(s): 4 14:55:11 Stepping: 0 14:55:11 BogoMIPS: 5600.00 14:55:11 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 14:55:11 Virtualization: AMD-V 14:55:11 Hypervisor vendor: KVM 14:55:11 Virtualization type: full 14:55:11 L1d cache: 128 KiB (4 instances) 14:55:11 L1i cache: 128 KiB (4 instances) 14:55:11 L2 cache: 2 MiB (4 instances) 14:55:11 L3 cache: 64 MiB (4 instances) 14:55:11 NUMA node(s): 1 14:55:11 NUMA node0 CPU(s): 0-3 14:55:11 Vulnerability Gather data sampling: Not affected 14:55:11 Vulnerability Indirect target selection: Not affected 14:55:11 Vulnerability Itlb multihit: Not affected 14:55:11 Vulnerability L1tf: Not affected 14:55:11 Vulnerability Mds: Not affected 14:55:11 Vulnerability Meltdown: Not affected 14:55:11 Vulnerability Mmio stale data: Not affected 14:55:11 Vulnerability Reg file data sampling: Not affected 14:55:11 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 14:55:11 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 14:55:11 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 14:55:11 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 14:55:11 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 14:55:11 Vulnerability Srbds: Not affected 14:55:11 Vulnerability Tsa: Not affected 14:55:11 Vulnerability Tsx async abort: Not affected 14:55:11 Vulnerability Vmscape: Not affected 14:55:11 14:55:11 14:55:11 ---> nproc: 14:55:11 4 14:55:11 14:55:11 14:55:11 ---> df -h: 14:55:11 Filesystem Size Used Avail Use% Mounted on 14:55:11 tmpfs 1.6G 1.1M 1.6G 1% /run 14:55:11 /dev/vda1 78G 11G 67G 15% / 14:55:11 tmpfs 7.9G 0 7.9G 0% /dev/shm 14:55:11 tmpfs 5.0M 0 5.0M 0% /run/lock 14:55:11 /dev/vda15 105M 6.1M 99M 6% /boot/efi 14:55:11 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 14:55:11 14:55:11 14:55:11 ---> free -m: 14:55:11 total used free shared buff/cache available 14:55:11 Mem: 15989 744 9744 4 5500 14901 14:55:11 Swap: 1023 0 1023 14:55:11 14:55:11 14:55:11 ---> ip addr: 14:55:11 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 14:55:11 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 14:55:11 inet 127.0.0.1/8 scope host lo 14:55:11 valid_lft forever preferred_lft forever 14:55:11 inet6 ::1/128 scope host 14:55:11 valid_lft forever preferred_lft forever 14:55:11 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 14:55:11 link/ether fa:16:3e:6b:36:f9 brd ff:ff:ff:ff:ff:ff 14:55:11 altname enp0s3 14:55:11 inet 10.30.170.66/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 14:55:11 valid_lft 85618sec preferred_lft 85618sec 14:55:11 inet6 fe80::f816:3eff:fe6b:36f9/64 scope link 14:55:11 valid_lft forever preferred_lft forever 14:55:11 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 14:55:11 link/ether be:b8:26:69:ce:27 brd ff:ff:ff:ff:ff:ff 14:55:11 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 14:55:11 valid_lft forever preferred_lft forever 14:55:11 14:55:11 14:55:11 ---> sar -b -r -n DEV: 14:55:11 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-16) 09/04/26 _x86_64_ (4 CPU) 14:55:11 14:55:11 14:42:11 LINUX RESTART (4 CPU) 14:55:11 14:55:11 14:55:11 ---> sar -P ALL: 14:55:11 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-16) 09/04/26 _x86_64_ (4 CPU) 14:55:11 14:55:11 14:42:11 LINUX RESTART (4 CPU) 14:55:11 14:55:11 14:55:11